Remove all keyboard shortcuts from Visual Studio

Is it possible to remove all the keyboard shortcuts from Visual Studio, so I can assign them from scratch? I do not mean reset their default value, but nothing.

+4
source share
1 answer

I wanted to do the same with my Visual Studio installation - remove all shortcuts and assign my own. I managed to remove all the shortcuts using the hacky AutoHotKey script.

If you select a shortcut-bound command in the Keyboard section of the Visual Studio Options dialog box, the Delete button should be activated, from which you will notice that “R” is underlined (which, if not, hold down the key Alt).

VS Keyboard Options

On Windows, this usually means that the button can be pressed with the accelerator key Altalong with the corresponding character (in this case, “R”). Of course, the Alt+ label worked Rand the corresponding (in this case Build.BuildSolution) label was not assigned .

So, deleting all the shortcuts is a question about the lack of binding of the selected command using Alt+ Rand re-selecting the next command ( ). What I automated with the following script,

#z::              ; Binds to Win + Z (which wasn't assigned to anything).
Loop, 3500        ; Loops 3500 times.
{
    Send, {Down}  ; Sends the down keystroke.
    Send, !r      ; Sends the Alt + R keystroke.
    Sleep, 30     ; Introduces a 30ms delay.
}
Return

(3500) script (#z, Win + Z) . script, , ( ) Win + Z .

, , script, , , Alt + R .

script , Windows , , Windows script.

+1

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


All Articles