Skip to content

Instantly share code, notes, and snippets.

@nikoheikkila
Last active August 15, 2020 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikoheikkila/73de297c8b409257b9c608a842a6d2f2 to your computer and use it in GitHub Desktop.
Save nikoheikkila/73de297c8b409257b9c608a842a6d2f2 to your computer and use it in GitHub Desktop.
Use conventional commits through a VS Code shortcut
{
"Conventional Commit": {
"prefix": "cc",
"body": [
"${1:type}(${2:scope}): ${3:title}",
"",
"${4:body}",
"",
"${5:footer}"
],
"description": "Generate a conventional commit message"
}
}
@nikoheikkila
Copy link
Author

nikoheikkila commented Mar 16, 2020

macOS

Place this in the ~/Library/Application Support/Code/User/snippets/git-commit.json file. Then in the COMMIT_MSG view type cc and hit Enter.

Windows

Follow the above but use /C:/Users/<username>/AppData/Roaming/Code/User/snippets/git-commit.json as the path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment