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?
'Sync with Active Document' button not working for some files
Asked Answered
"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")
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
Enable at:
Tools > Options > Projects and Solutions > General > Track Active Item in Solution Explorer
Works with VS 2017.
This works for VS 2019 as well. I am using enterprise version –
Helenehelenka
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
I resolved it by setting up the shortcut to "Text Editor" instead of letting it as a "Global" shortcut.
Tools > Options > Environment > Keyboard
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-explorer –
Sarina
Downvoted because it did not work for me today in VS 2022 (sorry) –
Breadboard
© 2022 - 2024 — McMap. All rights reserved.