Skip to content

Git commit message templates #7830

@ghost

Description

The primary goal is to have awesome git messages through the power of templates + snippets.

We were looking to use git's commit templates for better git commit messages, similar to Angular's conventions. But we also love the super easy git integration directly in vs code.

We'd like to somehow combine the two. Currently, we can use our git commit template via the following steps:

  1. Stage the files in the git window using ctrl+shift+G and then the mouse (less than ideal, but that's a separate issue).
  2. Open up a command line quick-like with ctrl+shift+C and type git commit, which brings up the git commit msg editor.

According to #3876, we could conceivably set up vscode to be the default git commit editor when typing the git commit, but that still seems klunky - not to mention the fact that gitmode isn't available to install. I was thinking of giving a vscode extension a go which would allow for snippets within the git commit message. But perhaps there is a better solution that we're not seeing.

So...

  • Is there already a good solution for this that we're not finding?
  • If we make an extension, would we have access to the git message editor to use snippets and to read the default git message template?
  • If we make an extension, would it be possible to use the primary text editors of vs code?

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalitygitGIT issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions