安装Resharper后如何在Visual Studio中还原导航到对话框 [英] How to Restore Navigate To Dialog in Visual Studio After Resharper Installation
问题描述
在为Visual Studio 2010安装Resharper 7.1.2之后,当我按 Ctrl + 时,我不再看到Navigate To
对话框.而是显示重新共享"对话框Recent Files
.我的问题是,对于Navigate To
对话框,我是否还不知道另一个按键绑定,或者如何在按 Ctrl + 时如何配置Resharper/VS以显示Navigate To
对话框, .在Resharper选项中,我为键绑定选择了Visual Studio
,因为这是我习惯的,但是由于某种原因,这个更改了.
After installing Resharper 7.1.2 for Visual Studio 2010, when I press Ctrl+, I no longer see the Navigate To
dialog. Instead a Resharper dialog Recent Files
appears. My question is, is there another key binding that I am not aware for the Navigate To
dialog or how can I configure Resharper/VS to show the Navigate To
dialog upon pressing Ctrl+,. In the Resharper options I have selected Visual Studio
for the key bindings since that is what I am accustomed to, but for some reason this one has changed.
推荐答案
听起来您需要删除ReSharper键盘绑定,然后再次添加Visual Studio.请尝试以下操作:
It sounds like you will need to remove the ReSharper keybinding and add the Visual Studio one again. Try the following:
从Visual Studio 2010中,转到工具"->选项"->环境"->键盘".
From Visual Studio 2010, go to Tools -> Options -> Environment -> Keyboard.
在显示包含以下内容的命令"下面的文本框中,输入"gotorecent".
In the textbox below "Show commands containing:" enter "gotorecent".
这应该显示一个匹配项,您可以看到 Ctrl + ,快捷方式已应用:
This should bring up one match and you can see the Ctrl+, shortcut applied:
单击Remove
按钮.这应该删除键绑定.
Click the Remove
button. This should remove the keybinding.
在显示包含以下内容的命令"下面的文本框中,输入"edit.navigateto"(或对于VS2017,为"edit.gotoall").
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.
单击按快捷键:"下面的texbox,然后按 Ctrl + ,
Click the texbox below "Press shortcut keys:" and press Ctrl+,
点击Assign
按钮.
点击OK
按钮.
您可能必须重新启动Visual Studio,但应该这样做.
You may have to restart Visual Studio but that should do it.
为了以防万一,为了跟踪命令名称,我通过工具->导入/导出设置->导出选定的环境设置->导出了键盘设置.仅选择选项->环境->键盘. 在生成的.vssettings文件中,每个Shortcut元素的Command属性都包含应在显示包含以下内容的命令"文本框中键入的文本.
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.
这篇关于安装Resharper后如何在Visual Studio中还原导航到对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!