F12 查找所有引用,不去定义 [英] F12 finds all references, not go to definition

查看:27
本文介绍了F12 查找所有引用,不去定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我的 F12 键在 Visual Studio 2010 Professional SP1 中似乎没有按预期工作.它应该转到所选内容的定义,而是执行查找所有引用任务 - Ctrl+K、R.

Lately my F12 key does not seem to be working as expected in Visual Studio 2010 Professional SP1. It should go to the definition of what is selected, but instead it's performing the find all references task - Ctrl+K, R.

有人知道如何解决这个问题吗?当我经常使用这个快捷方式时,它变得很烦人 - 我正在研究一个大型解决方案,有时它会短暂地锁定 Visual Studio,试图找到所有引用.

Does anyone have any ideas how I can fix this? It is getting quite annoying as I routinely use this shortcut - I am working on a large solution where it sometimes locks visual studio briefly trying to find all references.

我尝试过工具 -> 选项 -> 环境 -> 键盘 -> 重置但没有成功.

I have tried going to Tools -> Options -> Enviroment -> Keyboard -> Reset with no success.

另外一件事:它只是有时会这样做,我还没有区分它何时按预期工作和不按预期工作的模式.

One other thing: it only does it sometimes and I am yet to distinguish a pattern when it does and does not work as expected.

我忘记说的一件事是,当它不起作用时,我第二次按 F12 时它确实将我带到了定义,只是第一次按下找到所有引用.

One thing I forgot to say is that when it does not work, the second time I press F12 it does take me to the definition, it's just the first press that finds all references.

推荐答案

您可以为任何命令设置任何键盘快捷键.输入 edit.godefinition 选择命令,然后按 F12 分配键.

You can set any keyboard shortcut to any command. Type edit.gotodefinition to select the command and press F12 to assign the key.

喜欢这个

这篇关于F12 查找所有引用,不去定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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