'Sync with Active Document' button not working for some files
Asked Answered
I

3

14

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?

Imf answered 13/4, 2016 at 16:9 Comment(0)
C
24

"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")

Celestyn answered 11/1, 2017 at 0:23 Comment(5)
Did not fix the issue in VS 2019 I have for some files.Iulus
Ha, did you try turning it off and on again.Geerts
Upvoted because you mentioned how this is configured in Tools | Options...Indefatigable
Note: If you have Resharper installed it will most likely silently turn the options off. You will have to disable the silent performance fix first. Then turn it on and off.Silvers
Thanks! The option on did not work for me in VS 2022, and the keyboard shortcut for syncing stated it was not currently available. Turning it off again does the trick, even though it sounds counterintuitive. The reason: Turning it on will disable manual syncing because it already should always be in sync (but of course is not)Breadboard
T
18

Enable at:

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

Works with VS 2017.

Tolly answered 6/9, 2018 at 11:1 Comment(2)
This works for VS 2019 as well. I am using enterprise versionHelenehelenka
The question asks about using the button to get from the open file to the solution explorer, not the always-on 'track active item' option.Amalia
G
0

I resolved it by setting up the shortcut to "Text Editor" instead of letting it as a "Global" shortcut.

Tools > Options > Environment > Keyboard

Tools > Options > Environment > Keyboard

Grew answered 27/6, 2022 at 8:39 Comment(2)
This worked for me. I was struggling after installing Resharper on VS2022 and this solved it. More info https://mcmap.net/q/76033/-visual-studio-shortcut-to-navigate-to-solution-explorerSarina
Downvoted because it did not work for me today in VS 2022 (sorry)Breadboard

© 2022 - 2024 — McMap. All rights reserved.