Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

💬Conventional Commits for VSCode.

License

NotificationsYou must be signed in to change notification settings

vivaxy/vscode-conventional-commits

Repository files navigation

Marketplace VersionInstallsDownloadsRatingFinancial Contributors on Open Collective

Conventional Commits for VSCode.

Features

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

Usage

Demo

You can access VSCode Conventional Commits in two ways:

  1. Command + Shift + P orCtrl + Shift + P, enterConventional Commits,and pressEnter.
  2. Click the icon on the Source Control menu. See the image below.

Icon on the Source Control menu

Extension Configuration

namedescriptiondefault
conventionalCommits.autoCommitControl whether the extension should commit files after: forming the message or closing the editor tab.
When#git.enableSmartCommit# enabled and#git.smartCommitChanges# was set toall, It allows to commit all changes when there are no staged changes.
And set#git.postCommitCommand# tosync to rungit.sync after commit.
true
conventionalCommits.emojiFormatSpecify which format will be shown in thegitmoji.code
conventionalCommits.gitmojiControl whether the extension should prompt for agitmoji.true
conventionalCommits.lineBreakSpecify which word will be treated as line breaks in thebody.
Blank means no line breaks.
""
conventionalCommits.promptBodyControl whether the extension should prompt for thebody section.true
conventionalCommits.promptFooterControl whether the extension should prompt for thefooter section.true
conventionalCommits.promptCIControl whether the extension should prompt for skipping CI run.false
conventionalCommits.promptScopesControl whether the extension should prompt for thescope section.true
conventionalCommits.scopesSpecify available selections in thescope section.[]
conventionalCommits.showEditorControl whether the extension should show the commit message as a text document in a separate tab.false
conventionalCommits.showNewVersionNotesControl whether the extension should show the new version notes.true
conventionalCommits.silentAutoCommitControl that auto commit should be silent, without focusing source control panel.false
conventionalCommits.editor.keepAfterSaveControl whether the extension should keep the editor tab open after saving the commit message.false
conventionalCommits.storeScopesGloballyControl whether the extension should store the defined scopes within your user settings. Uncheck to store in workspace settings.false

Commit Workflow

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

If you want the extension to only fill in the message, disableautoCommitconfiguration.

The Recommended Workflow

  1. Active the extension.
  2. Type messages.

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

How To ConfigureautoCommit

  1. EnableSettings > conventionalCommits.autoCommit configuration of theextension.The extension enablesSettings > conventionalCommits.autoCommitby default.
  2. EnableSettings > git.enableSmartCommit and setSettings > git.smartCommitChanges toall to commit all changes when thereare no staged changes.
  3. SetSettings > git.postCommitCommand tosync to rungit.sync aftercommit.
  • body-full-stop
  • body-leading-blank
  • body-max-length
  • body-max-line-length
  • body-min-length
  • footer-leading-blank
  • footer-max-length
  • footer-max-line-length
  • footer-min-length
  • header-case
  • header-full-stop
  • header-max-length
  • header-min-length
  • references-empty
  • scope-enum
  • scope-case
  • scope-empty
  • scope-max-length
  • scope-min-length
  • subject-case
  • subject-empty
  • subject-full-stop
  • subject-max-length
  • subject-min-length
  • type-enum
  • type-case
  • type-empty
  • type-max-length
  • type-min-length
  • signed-off-by

FAQ

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

A: SetlineBreak configuration to\n. When you're typing, enter\n asa line break.

image

Or\\n in JSON format.

image

Q: How do I resolverepo not found error?

A: See issue discussion#15.

Q: How do I usecommitlint inshowEditor mode?

A: The extension -vscode-commitlint will helpful!

Troubleshooting

  1. Switch to the VSCodeOUTPUT tab, selectConventional Commits.
  2. Copy all the output. Before sharing it, make sure you have removed allprivate information.

Debug instruction

Contribution

  1. The vscode task needs to install the extension -vscode-tsl-problem-matcher.
  2. The effect of code changes needs to reactivate the extension. Just restartthe task.

Team Members

Financial Contributors

Become a financial contributor and help us sustain our community.[Contribute]

Individuals

Organizations

Support this project with your organization. Your logo will show up here with alink to your website.[Contribute]

Related Projects

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp