Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'Sync with Active Document' button not working for some files

I use Microsoft Visual Studio Ultimate 2013 and it looks like this button is working in one project (WPF app.) and not working in other project (server app.) within the same solution. Which VS setting did I possibly have broken?

like image 987
Waldemar Gałęzinowski Avatar asked Apr 13 '16 16:04

Waldemar Gałęzinowski


People also ask

What is sync with active document?

If you are ever working on a code file and want to find it in the Solution Explorer, you can use 'Sync with Active Document'. This is especially useful if you have many files in your solution and/or have many subfolders.

How do I track a file in Visual Studio?

1) Automatically Track active Item in Solution Explorer This sync can be done automatically. For that you just need to check: Visual Studio > top menus > Tools > Options… > Projects and Solutions > General > Track Active Item in Solution Explorer.


2 Answers

"Sync with Active Document" stopped working for me in VS 2015, both the button on top of Solution Explorer, as well as the Shortcut (Ctl + [, S).

I fixed this by first turning on the automatic sync, and then turning if back off. (This is done in Tools | Options | Projects and Solutions | General, with "Track Active Item in Solution Explorer")

like image 95
Spero Larres Avatar answered Oct 19 '22 05:10

Spero Larres


Enable at:

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

Works with VS 2017.

like image 23
arush436 Avatar answered Oct 19 '22 06:10

arush436