Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the Sync with active document button in Visual Studio?

Where is the Sync with active document button in Visual Studio?

I know that I can press Alt + Shift + L and I will get the Sync with active document. I also know that I can enable in the Options the feature to work every time I focus on another file.

But I can not find a button in the VS interface to do that. Is it even present? I would expect such a button be somewhere in the top of the interface of the VS. Somewhere near the comment/uncomment buttons (that is just my feeling that it is there, I have no proofs or reasons to think so).

like image 252
qqqqqqq Avatar asked Dec 21 '19 19:12

qqqqqqq


2 Answers

I know this might sound silly, but I spent about a day trying to figure out where the button went in the latest VS2019 (Version 16.10.2) update.

After one complete day of using the keyboard shortcut instead, I realised that the Icon has changed to a different Icon.

enter image description here

Note: The Track Active Item in Solution Explorer checkbox should be unchecked to see this Icon, as posted by @Sandro Stadler.

like image 139
Dawood Awan Avatar answered Oct 04 '22 12:10

Dawood Awan


Pretty simple. enter image description here

If you check this option, the document and solution explorer will be automatically synchronized and the icon will be hidden.

Deselect to show the icon in the solution manager.

like image 24
Sandro Stadler Avatar answered Oct 04 '22 11:10

Sandro Stadler