How to locate a file in Solution Explorer in Visual Studio 2010?

I have a huge solution with multiple projects. Sometime I need to navigate to a file in Solution Explorer . Using the VS 2010 ' Navigate To ' feature I can open any file by name in Visual Studio 2010 but I want to be able to select the file in Solution Explorer as well?


There's an option to track the active (open and viewed) item in the solution explorer. If the file is in view, the file in the solution explorer will be selected.

Tools->Options->Projects and Solutions->Track Active Item in Solution Explorer


Shift + Alt + L将在安装了ReSharper的Visual Studio 2008+的解决方案资源管理器中找到当前文件。


VS2012 added a new command called SolutionExplorer.SyncWithActiveDocument . The default shortcut for c# is Ctrl+[,S

This command will navigate to the active file in the Solution Explorer.

Also, it seems that you need to have the "Track Active Item in Solution Explorer" option turned off.

链接地址: http://www.djcxy.com/p/43686.html

上一篇: 如何为Visual Studio 2010构建Qt

下一篇: 如何在Visual Studio 2010中的解决方案资源管理器中找到文件?