Reputation: 1885
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?
Upvotes: 14
Views: 13207
Reputation: 1
I discovered something after struggling with a similar issue where the git graph button in the source control panel went missing. In VSCode user settings, there is an option called SCM: Provider Count Badge. This was set to none.
The setting says "Controls the count badges on Source Control Provision headers. These headers appear in the Source Control view when there is more than one provider or when the SCM: Always Show Repositories setting is enabled, and in the Source Control Repositories view."
When I changed this from "None" to "Auto", the Git-Graph button showed up again within the source control menu to the left of the three dot 'more actions..." button.
Took me forever to figure this out so hopefully this helps someone out.
Upvotes: 0
Reputation: 5353
Right-click on the sidebar (any part of the sidebar) and you will see this:
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):
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.
Upvotes: 28
Reputation: 11
You can show the "Source Control" panel with a keyboard shortcut:
Once it's displayed, from there you can drag it to your menu bar.
Upvotes: 1
Reputation: 11
Open the Command Palette:
Then write "source control", then add it.
Upvotes: 1
Reputation: 282
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.
Upvotes: 12