Reputation: 679
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.
Upvotes: 30
Views: 13811
Reputation: 348
In Visual Studio Code version 1.76.1 this problem can be resolved by:
Upvotes: 0
Reputation: 182591
As of vscode v1.75 you can reset all the view locations from the Layout Control button near the upper right:
Upvotes: 0
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.
Then you can just drag the Source Control panel and drop it on the side/activity bar. It gets back to its original place.
Finally!!!
Upvotes: 1
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
.
Upvotes: 0
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
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
Reputation: 679
As @rioV8 commented - what solved it for me was to right click on the icon and click "Reset Location"
Upvotes: 5
Reputation: 2081
Try right clicking on the bar and you should see a menu like the one below
recheck the source control and the icon should appear.
Upvotes: 3
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).
To re-enable it, right-click anywhere on the Activity Bar and select 'Source Control'
Upvotes: 7