Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>git comment templateNew to Visual Studio Code? Get it now.
git comment template

git comment template

simofy

|
206 installs
| (0) | Free
Simple plugin to help write git commit messages by providing template for ticket number
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

git-comment-template

This extension generates a commit message based on the branch name by allowing you to provide a regex and a template to fill with the matched value.

VS Code in action

Features

  • Custom Regex Patterns: Define your own regular expressions to extract specific information from branch names.

  • Flexible Templates: Create commit message templates with placeholders that correspond to the matched values from the branch name.

  • Saves Time: Eliminate the need to manually craft commit messages, ensuring consistency and accuracy in your version control history.

  • Improved Workflow: Enhance your development workflow by easily documenting the purpose or context of each commit.

Extension Settings

This extension contributes the following settings:

  • git-comment-template.regex: Provide a regex to match against the branch name for use within the template.

Example regex: (\\d+)(?![^/]*\\/) matches feat/123123-nice-feature to 123123

  • git-comment-template.template: String where %s will be replaced with first value from regex.

Example template: [AB#%s] will resolve to [AB#123123]

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft