Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode SCM tab suddenly disappeared

I must have pressed a wrong combination of keys with my crooked fingers which caused the version control tab to disappear from the sidebar.

Then I found source control tab somewhere in VSCode, dragged it into the sidebar, it shows the changes, however, the icon is completely different and also it doesn't show the number of current changes.

What happened? In the below screenshot the yellow icon is what I have for SCM now.

Thanks 🤞 enter image description here

like image 716
Scott Agirs Avatar asked Jul 11 '20 23:07

Scott Agirs


3 Answers

I had to use the View: Reset View Locations command to solve this problem in Visual Studio Code version 1.47 (macOS - Catalina).

To do this, just press Cmd+Shift+P (macOS) or Ctrl+Shift+P (Linux/Windows), type workbench.action.resetViewLocations, then press Enter.

Release notes - May 2020 (version 1.46)

like image 96
rafaelfpereira Avatar answered Dec 16 '22 21:12

rafaelfpereira


As @rioV8 commented - what solved it for me was to right click on the icon and click "Reset Location"

like image 21
Scott Agirs Avatar answered Dec 16 '22 23:12

Scott Agirs


I am not sure what you actually dragged to the activity bar vscode is really modular in this way; hard to say without being there, but you can re-enable SCM button.

Even if you use the short cut to open the source control view (CTRL + SHIFT + G, it will disappear again after you focus out of it (when it's not enabled).

enter image description here

To re-enable it, right-click anywhere on the Activity Bar and select 'Source Control'

enter image description here

like image 35
soulshined Avatar answered Dec 16 '22 23:12

soulshined