How do I invoke the commit input message box from the Source Control panel (using one command/shortcut)? git.commitall
invokes a floating commit message window.
The reason I want the one in the Source Control is that it provides the commit history with arrow keys and also shows you the changes underneath.
2
Answers
A possible workaround is to invoke the Source Control View itself:
Ctrl+Shift+G, then, as a separate key: G
You would end up directly in the "Message" field, ready to type a commit message.
Switching to that message field directly through another command does not seem to exist: So
File > Preferences > Keyboard Shortcuts
will not propose any other possible shortcut definition.The current Ctrl+Shift+G mentioned above is enough for your use case.
You can use the short cut key
Ctrl + Shift + G G
to open the sourcecontrol from your active VS Code window.
You can also find the list of keyboard shortcuts by pressing the
Ctrl + K Ctrl + S
(File > Preferences > Keyboard Shortcuts
) or you can use the VS Code cheat sheet on web for windows.Additionally, you can provide your own key bindings for commands by editing the commands and specifying your own short-cut key.