{"id":140,"date":"2024-12-29T23:23:57","date_gmt":"2024-12-30T04:23:57","guid":{"rendered":"https:\/\/kimsal.com\/blog\/?p=140"},"modified":"2024-12-30T14:52:38","modified_gmt":"2024-12-30T19:52:38","slug":"phpstorm-ai-assistant-commit-message-mods","status":"publish","type":"post","link":"https:\/\/kimsal.com\/blog\/2024\/12\/29\/phpstorm-ai-assistant-commit-message-mods\/","title":{"rendered":"PHPStorm AI Assistant commit message mods"},"content":{"rendered":"\n<p>I&#8217;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&#8217;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.<br><br>I&#8217;m generally bad a commit messages, and &#8230; have periods of laziness. I use Tower for a lot of git work, and it&#8217;s great for some things &#8211; letting me &#8216;undo&#8217; was the thing that got me to buy it in the first place. But&#8230; it&#8217;s something to switch to, and I &#8230; sometimes don&#8217;t break out of the zone enough to structure good commits and document them.<br><br>The Jetbrains AI tool is OK for code, but has a hook to expose it to their inbuilt git client. Specifically&#8230; after you choose files, you can hit a button and it&#8217;ll write a commit message describing the changes. And&#8230; it&#8217;s *pretty good* at finding a decent balance between brevity and explanation. You can edit after it provides a message, but I haven&#8217;t found much of a need to.<br><br>Except&#8230; I picked up a habit of &#8216;conventional commit&#8217; prefixing in commit messages. The Jetbrains AI doesn&#8217;t do that, and&#8230; on a recent test project, I was getting used to not having that style. I then found the &#8216;AI prompts&#8217; section in the settings area, and&#8230; there&#8217;s a commit message prompt. And it&#8217;s editable!<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"360\" class=\"wp-image-143\" style=\"width: 500px;\" src=\"https:\/\/kimsal.com\/blog\/wp-content\/uploads\/2024\/12\/Screenshot-2024-12-29-at-11.13.50\u202fPM.jpg\" alt=\"\" srcset=\"https:\/\/kimsal.com\/blog\/wp-content\/uploads\/2024\/12\/Screenshot-2024-12-29-at-11.13.50\u202fPM.jpg 1229w, https:\/\/kimsal.com\/blog\/wp-content\/uploads\/2024\/12\/Screenshot-2024-12-29-at-11.13.50\u202fPM-300x216.jpg 300w, https:\/\/kimsal.com\/blog\/wp-content\/uploads\/2024\/12\/Screenshot-2024-12-29-at-11.13.50\u202fPM-1024x737.jpg 1024w, https:\/\/kimsal.com\/blog\/wp-content\/uploads\/2024\/12\/Screenshot-2024-12-29-at-11.13.50\u202fPM-768x552.jpg 768w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"360\" class=\"wp-image-144\" style=\"width: 500px;\" src=\"https:\/\/kimsal.com\/blog\/wp-content\/uploads\/2024\/12\/Screenshot-2024-12-29-at-11.14.15\u202fPM.jpg\" alt=\"\" srcset=\"https:\/\/kimsal.com\/blog\/wp-content\/uploads\/2024\/12\/Screenshot-2024-12-29-at-11.14.15\u202fPM.jpg 1234w, https:\/\/kimsal.com\/blog\/wp-content\/uploads\/2024\/12\/Screenshot-2024-12-29-at-11.14.15\u202fPM-300x216.jpg 300w, https:\/\/kimsal.com\/blog\/wp-content\/uploads\/2024\/12\/Screenshot-2024-12-29-at-11.14.15\u202fPM-1024x738.jpg 1024w, https:\/\/kimsal.com\/blog\/wp-content\/uploads\/2024\/12\/Screenshot-2024-12-29-at-11.14.15\u202fPM-768x553.jpg 768w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><br><br>I modified it to ask it to provide a prefix tag like &#8216;feat:&#8217; or &#8216;doc:&#8217; or &#8216;fix:&#8217; or similar, to summarize the type of commit, along with its regular summarization.  It worked like a champ the last few days, and I&#8217;ll be keeping it around.  I&#8217;ll be checking out more of the configurable prompts to see what other benefits I can wrangle from this AI service.  \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;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&#8217;t say I notice much of a difference for most of the standard code I deal with, but I did recently start using Jetbrains&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-140","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/posts\/140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/comments?post=140"}],"version-history":[{"count":4,"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/posts\/140\/revisions"}],"predecessor-version":[{"id":147,"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/posts\/140\/revisions\/147"}],"wp:attachment":[{"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/media?parent=140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/categories?post=140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/tags?post=140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}