How to release keyboard shortcut in visual studio?

I want to assign a hotkey to a function, but the keys are already being used in a combination of some other functions. How can I easily remove this hotkey from all of these entries so that I can release it and assign it to the function I want?

0


source to share


3 answers


I am using Visual Studio C # Express 2008, but you can go to Tools / Options / Environment / Keyboard . If you place your cursor in the Press keyboard shortcuts box and enter the key you want to reassign, it will show you which commands use that key and allow you to clear or change the assignments.



+1


source


Navigate to the shortcut command (Tools> Options> Environment> Keyboard). If it's already done, it will show up, but it won't prevent you from assigning it to something else (which removes the shortcut from the original task).



+1


source


Some of the key labels are layered. So, for example, when editing text, the Text Editor keys override the global keys. If you set a shortcut to a priority layer, you can ignore anything assigned to the lower layer. Thus, the text editing keys are assigned them in the Text Editing section, rather than Global, to avoid ignoring them.

Repeat this for as many layers as you come across. I only do this part in stages if there is some other context for which I want the same shortcut for.

0


source







All Articles