Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork43
💬Conventional Commits for VSCode.
License
vivaxy/vscode-conventional-commits
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Conventional Commits for VSCode.
This extension helps you to fill in commit message according toConventional Commits.
- Supportcommitlint configs. SeeSupported Commitlint Rules for details.
- Support auto commit and push after typing messages. SeeCommit Workflow for details.
- Support project level scope management.
- Supportgitmojis.
- Support VSCode workspaces.
You can access VSCode Conventional Commits in two ways:
Command + Shift + P
orCtrl + Shift + P
, enterConventional Commits
,and pressEnter
.- Click the icon on the Source Control menu. See the image below.
name | description | default |
---|---|---|
conventionalCommits.autoCommit | Control 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.emojiFormat | Specify which format will be shown in thegitmoji . | code |
conventionalCommits.gitmoji | Control whether the extension should prompt for agitmoji . | true |
conventionalCommits.lineBreak | Specify which word will be treated as line breaks in thebody .Blank means no line breaks. | "" |
conventionalCommits.promptBody | Control whether the extension should prompt for thebody section. | true |
conventionalCommits.promptFooter | Control whether the extension should prompt for thefooter section. | true |
conventionalCommits.promptCI | Control whether the extension should prompt for skipping CI run. | false |
conventionalCommits.promptScopes | Control whether the extension should prompt for thescope section. | true |
conventionalCommits.scopes | Specify available selections in thescope section. | [] |
conventionalCommits.showEditor | Control whether the extension should show the commit message as a text document in a separate tab. | false |
conventionalCommits.showNewVersionNotes | Control whether the extension should show the new version notes. | true |
conventionalCommits.silentAutoCommit | Control that auto commit should be silent, without focusing source control panel. | false |
conventionalCommits.editor.keepAfterSave | Control whether the extension should keep the editor tab open after saving the commit message. | false |
conventionalCommits.storeScopesGlobally | Control whether the extension should store the defined scopes within your user settings. Uncheck to store in workspace settings. | false |
The recommended workflow automatically add, commit and push files by default.
If you want the extension to only fill in the message, disableautoCommit
configuration.
- Active the extension.
- Type messages.
The extension will automatically add the changed files, perform the commit andpush the commit to remote.
- Enable
Settings > conventionalCommits.autoCommit
configuration of theextension.The extension enablesSettings > conventionalCommits.autoCommit
by default. - Enable
Settings > git.enableSmartCommit
and setSettings > git.smartCommitChanges
toall
to commit all changes when thereare no staged changes. - Set
Settings > git.postCommitCommand
tosync
to rungit.sync
aftercommit.
SupportedCommitlint Rules
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
Q: How do I add a line break in messages?
A: SetlineBreak
configuration to\n
. When you're typing, enter\n
asa line break.
Or\\n
in JSON format.
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!
- Switch to the VSCode
OUTPUT
tab, selectConventional Commits
. - Copy all the output. Before sharing it, make sure you have removed allprivate information.
- The vscode task needs to install the extension -vscode-tsl-problem-matcher.
- The effect of code changes needs to reactivate the extension. Just restartthe task.
Become a financial contributor and help us sustain our community.[Contribute]
Support this project with your organization. Your logo will show up here with alink to your website.[Contribute]
About
💬Conventional Commits for VSCode.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.