转到声明键盘快捷键丢失 [英] Go to declaration keyboard shortcut missing

查看:26
本文介绍了转到声明键盘快捷键丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了 Resharper,它覆盖了我的转到声明的键盘快捷键.如何将键盘快捷键设置回 F12?

I installed Resharper and it over-wrote my keyboard shortcut for Go To Declaration. How can I set the keyboard shortcut back to F12?

我查看了 Visual Studio 选项 > 工具 > 选项 > 环境 > 键盘快捷键.这里有很多与声明相关的快捷方式.我不确定要编辑哪一个.

I looked in Visual Studio Options > Tools > Options > Environment > Keyboard Shortcut. There are many shortcuts related to declaration here. I'm not sure which one to edit.

图片(缺少快捷键)

推荐答案

在使用 INTELLIJ IDEA 模式时,您需要做一些事情.转到 Visual Studio 选项 >工具 >选项 >环境 >键盘快捷键.

When using the INTELLIJ IDEA schema you need to do a few things. Go to Visual Studio Options > Tools > Options > Environment > Keyboard Shortcut.

  1. 从 Resharper.ReSharper_GoToNextHighlight 中删除 F12 分配.

F12 分配给 Resharper.Resharper_GotoDeclaration,方法是在选项编辑器中选择它并单击 F12 >分配.

Assign F12 to Resharper.Resharper_GotoDeclaration by selecting it in the options editor and clicking F12 > Assign.

您可能还需要从 Edit.GoToDefinition 中删除 F12 分配.F12 分配给另一个按钮会导致一些奇怪的事情发生.

You may also have to remove F12 assignment from Edit.GoToDefinition. F12 being assigned to another button causes some bizarre stuff to happen.

现在 F12 应该显示在上下文菜单中并正常工作.

Now F12 should display in the context menu and function correctly.

或者,如果快捷方式转到声明"只是变得未绑定,然后将其重置回默认的 CTRL+B.在 Visual Studio 顶部菜单 >Resharper >选项 >环境 >键盘和菜单 >选择 IntelliJ IDEA 架构 >申请方案.

Alternatively, if the shortcut to "Go to Declaration" has simply become unbound then reset it back to the default of CTRL+B. In Visual Studio top menu > Resharper > Options > Environment > Keyboard and Menus > Select IntelliJ IDEA schema > Apply Scheme.

这篇关于转到声明键盘快捷键丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆