Visual Studio 2015 RC :: Keyboard shortcut "freeze current file"

I am using Visual Studio 2015 Release Candidate (RC) on Windows 10 Build 10130.

I would like to create a Visual Studio 2015 shortcut key to β€œlock the current file” in the code editor window or when I selected one or more files in the solution browser window.

How is this possible?

+6
source share
1 answer

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 .

enter image description here

+4
source

Source: https://habr.com/ru/post/989538/


All Articles