Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code's Source Control icon has gone missing, how do I get it back?

I don't know how I did this, but the Source Control icon on the left hand vertical menu of Visual Studio Code has gone missing on my work Mac. On my personal Mac it's still there, so I must have inadvertently done something to remove it from my work Mac.

How can I get the Source Control icon back?

like image 717
writes_on Avatar asked Dec 21 '25 13:12

writes_on


2 Answers

Right-click on the sidebar (any part of the sidebar) and you will see this:

enter image description here

From the menu, enable "Source Control" from there.

As an alternative, as the screenshot says, you can also toggle showing/hiding the "Source Control" panel via its keyboard shortcut (in case it has changed with recent versions, look it up from the full keyboard shortcuts list):

  • CTRL+SHIFT+G G on Windows/Linux
  • CTRL+SHIFT+G on Mac

Then once it appears, you can drag it back to the sidebar and then do the same steps described above to toggle it to be always displayed.

like image 95
tHeSiD Avatar answered Dec 24 '25 02:12

tHeSiD


For me, oddly there is no menu option, context menu, settings option, or really anything else. I tried disabling every extension to fix it, but when I right-click, as in the other answer, "Source Control" does NOT appear.

It seems the functions for "Source Control" are now in the Explorer Panel.

Drag that over back to the gutter and it's fixed.

like image 21
Andy T Avatar answered Dec 24 '25 02:12

Andy T



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!