Last active
August 15, 2020 13:07
-
-
Save nikoheikkila/73de297c8b409257b9c608a842a6d2f2 to your computer and use it in GitHub Desktop.
Use conventional commits through a VS Code shortcut
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Conventional Commit": { | |
"prefix": "cc", | |
"body": [ | |
"${1:type}(${2:scope}): ${3:title}", | |
"", | |
"${4:body}", | |
"", | |
"${5:footer}" | |
], | |
"description": "Generate a conventional commit message" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
macOS
Place this in the
~/Library/Application Support/Code/User/snippets/git-commit.json
file. Then in theCOMMIT_MSG
view typecc
and hit Enter.Windows
Follow the above but use
/C:/Users/<username>/AppData/Roaming/Code/User/snippets/git-commit.json
as the path.