When committing a change on the IntelliJ platform, is there a way to have it check that the first line of the commit message does not exceed the 50-character length limit?
Right now, I'm usually checking this manually, with the position indicator in the lower right corner of the main IDE window (the one that is formatted as line:character
). However that indicator is sometimes hidden by other tool windows, and requires me to have the cursor at the end of the first line. Is there some setting I can enable or some plugin I can install to have the IDE check this for me?
Body line length limited to 80 characters The line length for the body text of a commit message should be constrained to 80 characters. Regardless of if you manually wrap the body line length to 80 characters or not, the body text will appear as wrapped as 80 characters in the GitHub UI.
For anyone still interested in this: I've come across a new setting which does allow what I initially wanted, in a settings group called 'Commit Dialog'.
You can now have it warn you about a long subject line right in the dialog, without needing the visual aid of a delimiter!
For newer IntelliJ versions (at least 2017 and above) read the (self-)answer of @gandreadis.
In older IntelliJ version you can set Right margin for commit messages to 50 characters in Settings/Version Control.
Then the commit message input should look like this:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With