gpt4 book ai didi

c# - 在 VS2015/C# 中的当前文件/类中查找方法

转载 作者:太空狗 更新时间:2023-10-29 17:49:10 27 4
gpt4 key购买 nike

我可以使用 Ctrl+, 快捷方式搜索方法,但会在整个项目中搜索:

enter image description here

这列出了所有文件中所有有这个方法的类,我只想在当前文件中搜索,类似于VAssistX中的Alt+M。有捷径吗?

我找到了 Is there an easy way to jump right to a method within a file? , 但它是针对 VS2012 的,他们只建议 Ctrl+FCtrl+,

注意:我正在寻找真正的导航,而不是 Ctrl+F,并且只在当前文件中,这与 Ctrl+, 不同。

最佳答案

扩展 Matt Schley 的回答:

Ctrl + F2 -> Tab -> 然后开始输入,它将筛选文件中的函数。

我知道您可能正在寻找其他东西,但这已经是 Visual Studio 中内置的最好的了。也许有可用的扩展。

编辑

这是 C# 的映射。命令名称是 Window.MovetoNavigation

对于 C++,默认是 Ctrl + F8

关于c# - 在 VS2015/C# 中的当前文件/类中查找方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40306687/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com