views:

25

answers:

2

Normally, many files in VS2010 are opened in many tabs, while massive working on project. Many times I find myself right-clicking on tab-title and searching for "Show/Select/Scroll-to this file in solution explorer" and I can't find it.

Is there way to finding, automatically-by-demand, opened file in the solution explorer?

+4  A: 

I don't know if you can do it on-demand, but you can enable the option "Track Active Item in Solution Explorer" (options->Projects and Solutions) which will always select the active tab item in the solution explorer.

Francesco De Vittori
Option was activated by default in VS2005 i think.
bAN
D'oh! Quicker draw.
AJ
@bAN -- I don't know about Visual Studio 2005, but for VS 2010 it's false by default. I can see why the default is false, though: this setting starts to expand every project in the solution over time, which makes the Solution Explorer unweildy. Ideally, there would be a button on the toolbar or in the menus that allowed you find the current file, but didn't have this feature on all the time.
Mike Rosenblum
+2  A: 

This isn't exactly what you're looking for, but it would automatically select the "active" file in the Solution Explorer:

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

AJ