How do you stop Visual Studio from waiting for the

2020-04-03 09:51发布

问题:

If I press a shortcut combination (such as Ctrl+M) – VS waits for the second one. What if I want to cancel it? (e.g. if I mistakenly press the wrong letter and am not sure which one.)

It just waits, with the "(Ctrl+M) was pressed. Waiting for a second key of chord..." in the bottom of the screen.

How do I cancel it?

回答1:

Press Escape. Usually it is not tied as a second keystroke.



回答2:

I normally press Esc .

I don't know of any keyboard shortcut where Esc is the second key press.



回答3:

There aren't many visual studio Chords that end with Esc so just hit Esc it'll say The key combination is not a command but it prevents you from performing a valid chord.



回答4:

Another option is to record a no-op macro and assign it to Ctrl-M, Esc. It will say running macro at the bottom quickly and go away.



回答5:

You are in Dvorak Keyboard mode in windows. Press Ctrl+Shift to get out of it...