转到声明键盘快捷键丢失

编程入门 行业动态 更新时间:2024-10-24 05:23:13
本文介绍了转到声明键盘快捷键丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我安装了 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.

从 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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-27 12:44:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1154914.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:转到   快捷键   键盘   声明

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!