How to Restore Navigate To Dialog in Visual Studio After Resharper Installation

女生的网名这么多〃 提交于 2019-11-30 02:40:12
Malice

It sounds like you will need to remove the ReSharper keybinding and add the Visual Studio one again. Try the following:

From Visual Studio 2010, go to Tools -> Options -> Environment -> Keyboard.

In the textbox below "Show commands containing:" enter "gotorecent".

This should bring up one match and you can see the Ctrl+, shortcut applied:

Click the Remove button. This should remove the keybinding.

In the textbox below "Show commands containing:" enter "edit.navigateto" (or for VS2017 "edit.gotoall").

This should bring up two matches. We are only concerned with the first one so make sure it is selected.

Click the texbox below "Press shortcut keys:" and press Ctrl+,

Click the Assign button.

Click the OK button.

You may have to restart Visual Studio but that should do it.

Edit: Just in case it helps anyone else, in order to track down the command names, I exported the keyboard settings via Tools -> Import/Export settings -> Export selected environment settings -> select only Options -> Environment -> Keyboard. In the resulting .vssettings file, the Command attribute of each Shortcut element contains the text that should be typed into the "Show commands containing:" textbox.

It should be noted that the command for ReSharper's navigate to dialogue is "Ctrl + T"

Bence Végert

In Visual Studio 2017, you need to assign Ctrl+, to Edit.GoToAll (rather than Edit.NavigateTo).

@Malice explained really well, but here is just one more tip: When you are in the Keyboard Options menu, you don't need to export all commands in order to see which command corresponds to a particular shortcut, you can click on the "Press shortcut keys" text box and type your keyword to see what it is assigned to.

So you could:

  • go to the Keyboard Options menu,
  • type Ctrl+, to see what it is assigned to,
  • unassign it,
  • then type Ctrl+T to see what that "Navigate To" dialog is called within VS
  • reassign that function to Ctrl+,
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!