This is a Visual Studio Code extension that formats git commit messages in the source control input box according to the 50/72 rule. It also supports optional linting and quick fixes for missing type: subject line prefixes.
Usage
Install the extension in VS Code.
Write a commit message in the source control view input box.
If either the subject line or the body exceeds the configured limit, a validation message will appear in the source control input box. Use the Quick Fix command (Ctrl+.) to access and run the Format commit message code action.
If your commit message lacks a type: prefix, a validation message will appear in the source control input box. Use the Quick Fix command (Ctrl+.) to access and run the Add commit type code action.
Happy committing!
Configuration options
Configure how long your commit message subject lines and bodies should be with the following settings: