在“查找所有引用"中显示方法名称- C# Visual Studio [英] Show method name in "Find all references" - C# Visual Studio

查看:29
本文介绍了在“查找所有引用"中显示方法名称- C# Visual Studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在 Visual Studio 中右键单击某个内容并按 Find all references 时,我会得到该对象出现的所有位置的列表.

When i rightclick something in visual studio and press Find all references i get a list of all locations where this object occur.

有什么方法可以同时显示此位置的范围 (Namespace.Class.Method) 而不仅仅是行号.现在我必须双击所有结果才能看到它的实际位置.

Is there any way to also show the scope of this location (Namespace.Class.Method) instead of just a line-number. Now i have to doubleclick all of the results to see where it actually is.

推荐答案

再给 ReSharper.在此处查看一些有关结果类型的屏幕截图.您可以更改结果的显示方式(我最喜欢的是 Project+Namespace+Member,这样我就可以看到引用来自哪些方法.)

One more vote for ReSharper. Check here for some screenshots as to the type of results. You can change how the results are presented (My favourite is Project+Namespace+Member, so I can see which methods the references are coming from.)

您还有几个选项可以优化您的搜索.例如:

You also have a few options to refine your searches. For example:

  • 搜索项目/文件,甚至包括引用的库
  • 搜索读取或写入用法
  • 搜索文本"匹配项

他们提供免费试用版...试试看.

They have a free trial available... try it out.

这篇关于在“查找所有引用"中显示方法名称- C# Visual Studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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