23

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

Scott Agirs
  • 599
  • 6
  • 14
  • 2
    where you have found it you can right click and `reset location`. You can now drag/drop panels and views – rioV8 Jul 12 '20 at 01:15
  • 1
    Hey @rioV8 i wish you would have posted an answer, I would have marked that as the solution. this is what did it for me! thanks a lot! – Scott Agirs Jul 13 '20 at 01:31
  • @rioV8 I think scott is right - you should put an answer so he can accept it :) whilst our answers are helpful they don't solve the specific problem – Caribou Jul 13 '20 at 11:32
  • You can drag and drop it from its current location section into the sidebar. – Shahroq Aug 17 '23 at 10:20

9 Answers9

41

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)

rafaelfpereira
  • 511
  • 3
  • 5
  • I love you @rafaelfpereira. I was using the circleci extension, and had placed it side-by-side with the terminal. Then I removed it from there, and it disappeared. 20 google searches later, I end up here, and the only thing that worked was your solution. Thank you so much! – mickmister Apr 07 '21 at 21:56
  • i had hopes that this would work..but to no avail. strangely i see down below at the lower left it shows 'master*' as my repo. so it knows my code is sourced in git. just not seeing that tab on the left anymore – mike01010 Apr 18 '23 at 22:46
5

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

soulshined
  • 9,612
  • 5
  • 44
  • 79
5

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

Scott Agirs
  • 599
  • 6
  • 14
3

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.

Caribou
  • 2,070
  • 13
  • 29
2

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.

rioV8
  • 24,506
  • 3
  • 32
  • 49
  • 1
    This is what happened to me. Scary for a moment lol. I had somehow managed to merge it with the main directories tab. Thanks! – Dehn Hunsworth Sep 24 '21 at 20:59
1

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

Oybek Toshmatov
  • 407
  • 5
  • 11
0

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

louielyl
  • 745
  • 7
  • 9
0

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

Mark
  • 143,421
  • 24
  • 428
  • 436
0

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'