Visual Studio find out what command is assigned to

2020-08-10 09:34发布

I've installed a Visual Studio plugin that redefines some hotkeys. I need to come back to the standard hotkeys of Visual Studio for some of them. I know that under Tools->Options->Environment->Keyboard I can redefine the hotkeys, and I did it. The problem is that now it seems that my hotkey Ctrl-E, C has two command associated, the plugin one and the standard one. When I press that combination visual studio runs the plugin command and not the standard one.

The problem is that I don't know the plugin-command name so I can't dissociate it unless I go through all the command to see the associated hotkeys. Is there a way to discover commands associated to a specific hotkey?

2条回答
一夜七次
2楼-- · 2020-08-10 09:57

The Keyboard Shortcut Extension can help. It produces a text file with a block of entries listing all your current shortcuts like this:

<command shortcut="Ctrl+M, Ctrl+E" name="Edit.ExpandCurrentRegion" />

You can then search for the command in the exported file using the shortcut.

Keyboard Shortcut Explorer

查看更多
小情绪 Triste *
3楼-- · 2020-08-10 10:17

You can try to assign this shortcut to another command and then you will receive info that this shortuct is already used by [your command]:

enter image description here

查看更多
登录 后发表回答