PHPStorm AI Assistant commit message mods

I’ve been testing out the Jetbrains AI service the past few months. Used Copilot for a while in 2023, then Codeium for about a year, and am now trying Jetbrains. I can’t say I notice much of a difference for most of the standard code I deal with, but I did recently start using Jetbrains AI with their integrated git client.

I’m generally bad a commit messages, and … have periods of laziness. I use Tower for a lot of git work, and it’s great for some things – letting me ‘undo’ was the thing that got me to buy it in the first place. But… it’s something to switch to, and I … sometimes don’t break out of the zone enough to structure good commits and document them.

The Jetbrains AI tool is OK for code, but has a hook to expose it to their inbuilt git client. Specifically… after you choose files, you can hit a button and it’ll write a commit message describing the changes. And… it’s *pretty good* at finding a decent balance between brevity and explanation. You can edit after it provides a message, but I haven’t found much of a need to.

Except… I picked up a habit of ‘conventional commit’ prefixing in commit messages. The Jetbrains AI doesn’t do that, and… on a recent test project, I was getting used to not having that style. I then found the ‘AI prompts’ section in the settings area, and… there’s a commit message prompt. And it’s editable!



I modified it to ask it to provide a prefix tag like ‘feat:’ or ‘doc:’ or ‘fix:’ or similar, to summarize the type of commit, along with its regular summarization. It worked like a champ the last few days, and I’ll be keeping it around. I’ll be checking out more of the configurable prompts to see what other benefits I can wrangle from this AI service. 🙂

Similar Posts

  • Bad I9 PDF form

    Have been needing to programmatically fill out an I9 PDF, retrieved from gov site. Should be fairly straightforward, right? Well… the field names are… a mess. Field names like topmostSubform[0].Page1[0].U\.S\._Social_Security_Number__Last_4_numbers_[0]topmostSubform[0].Page1[0].expiration_date__if_applicable__mm_dd_yyyy[0] topmostSubform[0].Page2[0].Employers_Business_or_Organization_Address_Street_Number_and_Name[0] and so on make it pretty… not straightforward to create a usable key/value combination to search and replace. But… today, I noticed it got…

  • Importance of backups

    Well… here we are.  10 years later, and … no backups.  Or… none of the data that’s important. Recently had a drive crash in my main server where this blog is hosted.  Had it happen 2 years ago, but the data was recovered, and I put everything on automatic backups.  Using virtualmin, a great control…

  • MySQL speed boost

    I hit a problem the other day with concurrent queries causing deadlocks.  Using innodb gives you a lot of protection with respect to transaction support, but it carries a moderate amount of overhead, and unless you’re aware of what’s going on, you may be paying a higher price which can eventually cause performance or deadlock…

  • PHP Quality Tools

    Curious about checking out the quality of your PHP project, but don’t know where to start? https://github.com/jakzal/phpqa is a project providing docker images of various tools to help measure aspects of your PHP code. will run the phploc tool on your current folder But… you can alias the tool, then simply run $ phpqa <toolname>…

Leave a Reply

Your email address will not be published. Required fields are marked *