VS.NET - 多个查找所有参考结果Windows? [英] VS.NET - Multiple Find All References Result Windows?

查看:180
本文介绍了VS.NET - 多个查找所有参考结果Windows?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual Studio有一个查找所有引用的工具,它在导航代码库的时候非常棒,可以找到函数被调用的地方或者变量被使用的地方。在浏览大型代码库时,我倾向于多次查找所有引用,以查找调用函数的最高级别。



想象一下,我们有以下几点: ()调用B1(),B1()调用C()b
$ b A2()调用B2() ),B2()调用C()



我的问题:

(),我发现B1()和B2(),这是伟大的。



现在,我试图找出B1()被调用。我发现A1()调用B1()。然而,当我想要回溯并找出什么叫B2(),但是我失去了B2()的轨迹时,我遇到了一个问题!默认情况下,VS.NET只有查找所有引用结果的窗口。由于我刚刚发现了所有对B1()的引用,所以我错过了C()被调用的地方。我现在必须找到对C()的所有引用,然后找到对B2()的所有引用。我在一个大的代码库中工作,找到所有的引用可以很容易地花费一分钟以上的功能。如果我可以保存搜索的结果将是很好的,未来找到所有引用将打开一个新的窗口,而不是覆盖现有的搜索。

是否有一个设置在VS.NET 2008或一个免费的插件,让我有多个查找所有引用窗口?



在相关说明,VS.NET有2个查找结果用于搜索文本的窗口。有没有办法有更多的?

解决方案

我不知道关于工作室,但 Resharper 为您做到这一点。当您使用查找使用功能时,它将跟踪您以前的所有搜索。您还可以在hte搜索范围(当前文件,项目,解决方案等)以及搜索选项(基本类型的用法等)方面具有一定的灵活性。

他们确实有免费试用,所以看看是否符合您的需求。

Visual Studio has a "Find All References" tool that is great in navigating the codebase to find out where a function is called or where a variable is used. When navigating a large code base, I tend to do find all references multiple times to find the top level of where a function is called.

Imagine we have the following:

A1() calls B1(), B1() calls C()

A2() calls B2(), B2() calls C()

My problem:

If I do find all references on C(), I find both B1() and B2(), which is great.

Now, I try to find out where B1() is called. I find A1() calls B1(). Great!

However, I run into an issue when I want to back track and find out what calls B2(), but I lost track of B2()! By default, VS.NET only has window for the "Find All References" result. Since I found all references for B1() just now, I lost track of where C() was called. I now have to find all references to C(), and then find all references to B2(). I'm working in a large code base, and finding all references can easily take more than a minute for a function. It would be nice if I could save the results of a search, and future find all references would open a new window instead of overwriting the existing search.

Is there a setting in VS.NET 2008 or a free addon that would allow me to have multiple "Find All References" windows?

On a related note, VS.NET has 2 Find result windows for searching for text. Is there a way to have more?

解决方案

I don't know about studio, but Resharper does this for you. It will keep track of all your previous searches when you use the "Find Usages" function. You also have some good flexibility for hte scope of hte search (Current File, Project, Solution, etc), as well as options for searching (usages of base types, etc).

They do have a free trial, so see if that meets your needs.

这篇关于VS.NET - 多个查找所有参考结果Windows?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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