Boris Callens
Boris Callens

Reputation: 93347

How to free up a key combination in visual studio?

I want to assign a hotkey to a function, but the keys are already used in some other functions' combination. How can I easely remove this hotkey from all these entries so I free it up and am able to asign it to the function I want?

Upvotes: 0

Views: 429

Answers (3)

Dirk Bester
Dirk Bester

Reputation: 1945

Some key shortcuts are layered. So for instance while editing text the Text Editor keys override the Global ones. If you set your shortcut for the priority layer you can ignore whatever is assigned on a lower layer. So for text editing keys assign them under Text Editing and not Global to avoid them being ignored.

Repeat this for as many layers that you run into. I do this part incrementally only if there is some other context I want that same shortcut for.

Upvotes: 0

Tom Mayfield
Tom Mayfield

Reputation: 6276

Go assign the command a shortcut (Tools > Options > Environment > Keyboard). If it's already taken, that will display, but it won't keep you from assigning it to something else (which removes the shortcut from the original task).

Upvotes: 1

D'Arcy Rittich
D'Arcy Rittich

Reputation: 171471

I am using Visual Studio C# Express 2008, but you can go into Tools/Options/Environment/Keyboard. If you put your cursor in the Press shortcut keys field and type the key you want to remap, it will show you what commands use that key and let you clear or change the assignments.

Upvotes: 1

Related Questions