gitvisual-studiovisual-studio-2017team-explorer

VS 2017 - Team Explorer Commit - Shortcut


What is the fastest way to commit into git from VisualStudio with and/or without TeamExplorer setup.

Currently I have to:

  1. Ctrl+\,Ctrl+M
  2. Enter
  3. Switch to changes
  4. Tab,Tab
  5. Write a commit message
  6. Ctrl+Q,Ctrl+S (custom shortcut for Team.Git.CommitAndSync)

Solution

    1. The default key binding to go straight to the Git Changes page in Team Explorer is Ctrl + 0,G. The command is Team.Git.GoToGitChanges if you'd like to bind it to a different key.

    2. Tab, Tab to reach the commit message textbox.

    3. Write your commit message.

    4. Usually followed by Alt + I to trigger the Commit button, but a custom key binding for the Commit and Sync command is needed in your scenario.

    Hope this helps.