skip to Main Content

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.

enter image description here

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


  1. 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.

    enter image description here


    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.

    Login or Signup to reply.
    • You can use the short cut key Ctrl + Shift + G G to open the source
      control 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search