-
Notifications
You must be signed in to change notification settings - Fork 38.9k
Git commit message templates #7830
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:
- Stage the files in the git window using
ctrl+shift+Gand then the mouse (less than ideal, but that's a separate issue). - Open up a command line quick-like with
ctrl+shift+Cand typegit 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?