Recent Visual Studio update introduced shortcut used to create closing curly brace on my keyboard: how to find offending command?

╄→гoц情女王★ 提交于 2019-11-30 06:01:32

问题


A recent update to Visual Studio has introduced a new or updated shortcut key that on my non-English keyboard allowed me to create closing curly braces (AltGr+shift+*). This shortcut still works as expected outside of VS (e.g. in notepad) but in VS it is now associated to some text selection command (like select text from the cursor position to the bottom of the file).

How can I find the offending shortcut key command among the hundreds in VS? I remembered the existence of a VS add-in that allowed printing out all currently set shortcut keys to attempt generating a list I could quickly search through but I failed at finding it.


回答1:


This has been driving me crazy for the last week. I tried to disable ReSharper, to reset the keybindings, to repair Visual Studio, all to no avail, I haven't been able to type closing curly braces since then. It never occurred to me that a new shortcut could have been introduced hijacking the keypress until reading your question.

To check if there's a rogue shortcut hijacking your keypresses, open the keyboard options screen using the ToolsOptionsEnvironmentKeyboard menus and click inside the "Press shortcut keys" field (it doesn't matter which command is selected):

Then press the affected keys combination, the combination will appear in the "Press shortcut keys" field and the associated commands - if any is - will be listed in the "Shortcut currently used by" drop-down:

To remove the shortcuts you need to search for every entry listed in the drop-down by typing the command name in the "Show command containing" field, selecting the entry in the filtered list, and removing every entry listed in the "Shortcuts for the selected commands" drop-down by clicking the "Remove" button.



来源:https://stackoverflow.com/questions/51921583/recent-visual-studio-update-introduced-shortcut-used-to-create-closing-curly-bra

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!