Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Conventional CommitsNew to Visual Studio Code? Get it now.

Conventional Commits

vivaxy

|
15,395 installs
| (6) | Free
💬Conventional Commits for VSCode.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSCode Conventional Commits

Marketplace Version Installs

Conventional Commits for VSCode.

Features

This extension helps you to fill in commit message according to Conventional Commits.

  • Support commitlint configs. See Supported Commitlint Rules for details.
  • Support auto commit and push after typing messages. See Commit Workflow for details.
  • Support project level scope management.
  • Support gitmojis.
  • Support VSCode workspaces.

Usage

Demo

You can access VSCode Conventional Commits in two ways:

  1. Command + Shift + P or Ctrl + Shift + P, enter Conventional Commits, and press Enter.
  2. Click the icon on the Source Control menu. See the image below.
Icon on the Source Control menu

Commit Workflow

The recommended workflow automatically add, commit and push files by default.

If you want the extension to only fill in the message, disable autoCommit configuration.

The Recommended Workflow

  1. Active the extension.
  2. Type messages.

The extension will automatically add the changed files, perform the commit and push the commit to remote.

How To Configure

  1. Enable Settings > conventionalCommits.autoCommit configuration of the extension. The extension enables Settings > conventionalCommits.autoCommit by default.
  2. Enable Settings > git.enableSmartCommit and set Settings > git.smartCommitChanges to all to commit all changes when there are no staged changes.
  3. Set Settings > git.postCommitCommand to sync to run git.sync after commit.

Supported Commitlint Rules

  • [x] body-full-stop
  • [ ] body-leading-blank
  • [x] body-max-length
  • [ ] body-max-line-length
  • [x] body-min-length
  • [ ] footer-leading-blank
  • [x] footer-max-length
  • [ ] footer-max-line-length
  • [x] footer-min-length
  • [x] header-case
  • [x] header-full-stop
  • [x] header-max-length
  • [x] header-min-length
  • [ ] references-empty
  • [x] scope-enum
  • [x] scope-case
  • [x] scope-empty
  • [x] scope-max-length
  • [x] scope-min-length
  • [x] subject-case
  • [x] subject-empty
  • [x] subject-full-stop
  • [x] subject-max-length
  • [x] subject-min-length
  • [x] type-enum
  • [x] type-case
  • [x] type-empty
  • [x] type-max-length
  • [x] type-min-length
  • [ ] signed-off-by

Related Projects

  • gacp
  • Commit Tagger
  • vscode-commitizen
  • Commit Message Editor
  • commitji
  • idea-conventional-commit
  • Git-commit-plugin For Vscode

Troubleshooting

  1. Switch to the VSCode OUTPUT tab, select Conventional Commits.
  2. Copy all the output. Before sharing it, make sure you have removed all private information.

Debug instruction

FAQ

Q: How do I add a line break in messages?

A: Set lineBreak configuration to \n. When you're typing, enter \n as a line break.

image

Or \\n in JSON format.

image

Q: How do I resolve repo not found error?

A: See issue discussion #15.

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2019 Microsoft