Scott Agirs
Scott Agirs

Reputation: 679

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.

enter image description here

Upvotes: 30

Views: 13811

Answers (9)

Hendrik Jan van Randen
Hendrik Jan van Randen

Reputation: 348

In Visual Studio Code version 1.76.1 this problem can be resolved by:

  • Ctrl-shift-g (show source control)
  • Right click the source control tab
  • From the popup menu choose 'Keep source control'

Upvotes: 0

Mark
Mark

Reputation: 182591

As of vscode v1.75 you can reset all the view locations from the Layout Control button near the upper right:

reset view location defaults

Upvotes: 0

Oybek Toshmatov
Oybek Toshmatov

Reputation: 427

If the "Source Control" panel is not on the side/activity bar or dissapeared for some reason, you check it on the "Explorer" panel. If you don't see it on the Explorer list, you can find it on the top right menu of the explorer panel. You can just check it and then it appears on the Explorer panel list.

enter image description here

Then you can just drag the Source Control panel and drop it on the side/activity bar. It gets back to its original place.

enter image description here

Finally!!!

enter image description here

Upvotes: 1

louielyl
louielyl

Reputation: 1062

For people who applied the methods above but still could not see the source control panel where you could jump to editted files quickly but only the side bar, here is the way you can fix it:

After you have got the source control panel appeared, right click any available tabs you have inside the panel, such as commits, file history, branches etc. Then make sure you chose the Source Control.

enter image description here

Upvotes: 0

rafaelfpereira
rafaelfpereira

Reputation: 651

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)

Upvotes: 55

rioV8
rioV8

Reputation: 28783

From version 1.46 it is now possible to drag and drop panels and views

If a panel/view is not in a spot you want and you want it back in its original place you can Right Click on the panel/view header and choose Reset Location.

Upvotes: 2

Scott Agirs
Scott Agirs

Reputation: 679

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

Upvotes: 5

Caribou
Caribou

Reputation: 2081

Try right clicking on the bar and you should see a menu like the one below

right click menu

recheck the source control and the icon should appear.

Upvotes: 3

soulshined
soulshined

Reputation: 10622

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

Upvotes: 7

Related Questions