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

  • laravel bulk imports

    Small note, mostly for myself, as a reminder that when doing large imports of data, you may not need each block to be processed as an Eloquent model. That code above would generally be faster as Obviously there are even faster ways – preparing your data in some text format, and using your DB cli…

  • Onboarding freelancers

    Maari Casey over at uncompany had a recent LinkedIn post about planning for freelancers. She made some good points, but I think skipped one, and it’s not just relevant for freelancers. Even well before an organization might need extra work – be it freelance or employee – companies need to have a plan for onboarding….

  • CyclopsMonitor

    I’ve been posting more about this new service over on linkedin, but haven’t posted much here. CyclopsMonitor is a web monitoring service – checking if a web address is up, how fast it responds, if specific content is available, when SSL/TLS certs expire, when domain name expires, and… sending you notifications when problems occur. Currently,…

  • 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…

  • 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…

Leave a Reply

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