Follow these instructions in Visual Studio:
- Open Tools β Options
- Go to Environment β Keyboard
- Enter "commit" in Show commands containing
- Choose
Team.Git.Commit Visual Studio - In the Use New Shortcut section, select
Text Editor - In the list, press the shortcut keys, enter a shortcut (for example, CTRL + SHIFT + C , CTRL + SHIFT + C )
Repeat the above steps, but replace Solution Explorer with Step # 5. Use the same key combination for consistency.
Result
- When you press the keyboard shortcut in the
Text Editor window, you will enter the current file in the editor. - When you press a key combination in the
Solution Explorer window, you will commit any modified / added files selected in Solution Explorer .

source share