开发者

identify which project contains a given file?

I have a solution with 15+ projects in th开发者_StackOverflowere

While jumping to a class is easy enough in VS2008/2010 with RightClick-Goto definition which jumps to the file containing the definition, but how to locate the project which contains this new class/file ??

I seem to recall it's possible using some "magic" keystrokes/menu but can's seem to locate it


Control+Coma allows you to search for the file by name and shows you where it finds it. If you do it with class name selected, it is not many more keystrokes.

Another option is to have Solution Explorer jump to the same file as you have open. That's under Options/Projects and Solutions and is called "Track Active Item...".


If you install the VS2010 Productivity Power Tools, the Solution Navigator provides a capability to identify where a type (or even property) is referenced, returned by, etc.

The channel9 series "VS Toolbox" actually debuted with this feature.

http://channel9.msdn.com/Shows/Visual-Studio-Toolbox/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜