Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2012: Scroll Solution Explorer to current file

VS2010 had the feature that viewing a file would automatically cause Solution Explorer to scroll to that file.

With VS2012, viewing different files from within the IDE no longer scrolls and select the file in Solution Explorer automatically.

Is it possible to get this feature back? Is there a setting somewhere? If so, how/where?

like image 499
Sarah Weinberger Avatar asked Oct 01 '12 23:10

Sarah Weinberger


People also ask

How do I show the current file in Solution Explorer?

In Visual Studio's menu go to Tools > Options > Projects and Solutions. Then check "Track Active Item in Solution Explorer".

How do I move Solution Explorer to Visual Studio to the left?

Just drag and drop onto the mechanic and dock the solution explorer window to the left side of the window. You must drop the panel onto the fastener, in the position you wish it to be docked (in the case, the rectangle on the left of the fastener, highlighted with a red circle).

How do I navigate the Solution Explorer in Visual Studio?

The default keyboard shortcut for opening/jumping to Solution Explorer is Ctrl + Alt + L .

How do I open files in Solution Explorer in Visual Studio?

To verify open any file in Visual Studio and press the shortcut keys Shift + Alt + L and you'll see the file in the solution explorer. Enjoy!


Video Answer


2 Answers

Yes, you can find that under

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

It's off by default (as you've noticed), but once it's on, Solution Explorer will expand folders and highlight the current document as you switch between files.

like image 70
Chris Bowen - MSFT Avatar answered Oct 10 '22 06:10

Chris Bowen - MSFT


If you need one-off sync with the solution pane, then there is new command "Sync with Active Document" (default shortcut: Ctrl+[, S). Explained here: Visual Studio 2012 New Features: Solution Explorer

like image 43
Alex Blekhman Avatar answered Oct 10 '22 06:10

Alex Blekhman