Explorer icon showing the git changes count in VS Code - visual-studio-code

As shown in the below image the Explore icon has the badge showing the count of my git changes.
I don't know how this happened some how unexpectedly I did something and this behaviour started.
How do I fix it and get the default behaviour of the git icon showing the changes count?

You accidentally moved the SOURCE CONTROL View to the Explorer bar.
Is this view not present in the SCM Bar?
I have tried to do it with the mouse but could not recreate. It created a new SCM icon in the Activity Bar with 1 view.
To move all the views to the default position execute command: View: Reset View locations

That Explorer icon badge is supposed to show the number of unsaved files with changes - it doesn't show the number of git changes except coincidentally.
I don't think the Explorer unsaved files count badge can be turned off. You can change its color or opacity but that would affect all badges (like the scm badge).

Thanks to this answer the GIF attached in answer was able to help me to fix the issue.
I just dragged the Source Control to the sidebar and it worked.

Related

How to restore VS Code Sidebar settings?

VS Code comes with a Source Control tab on the sidebar, I think I accidentally dragged the icon into the 'Explorer' tab icon, now all the source control boxes are dragged in here and the folder + files list which used to be the default in the Explorer tab is now pushed to the bottom.
How may I undo this change?
In general, if you have moved some view to a place, called a ViewContainer, like the Side Bar or Side Panel or Panel and you can't figure out how to get back to the default location for that view use the command
View: Reset View Locations to reset all the views to their default locations.

How to enable timeline view in VS code?

Timeline view has come recently for VS code updates and show history of the file changes but i accidentally click hide or some place and it got hidden. How to bring that back?
Context-Click (Right-Click) on the title bar of the View container and select the View that you have removed.
Or choose command View: Reset View Locations
Press Ctrl+Shift+E and it will open Explore Tab to the left (which shows all the files & folders in the current directory).
Click the three dots on the right, as shown in picture and click Timeline to enable Timeline tab..
This seems to be an bug in VS code and yet to be fixed. If it is not fixed for your version, you can remove the timeline.excludeSources setting from your user settings, and that should restore the view.
To find user settings you can Ctrl + Shift + Q and find Preferences:
Open User Settings. There search for timeline and remove the key
value.

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 🤞
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)
As #rioV8 commented - what solved it for me was to right click on the icon and click "Reset Location"
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'
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.
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.
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.
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!!!
As of vscode v1.75 you can reset all the view locations from the Layout Control button near the upper right:

Visual Studio Code Activity bar completely missing, Version 1.28

Just downloaded VSCode, ver 1.28 and the activity bar (left side) and the left side of the side bar are not there. This happened yesterday too, so uninstalled the program and tried again today.
I have no way to get to settings, debug, search, etc. Tried right clicking on black space and they don't show up, merely options to open a new file. If I do open (untitled) I still do not get that left part of the screen. I am comparing it to MS's user interface page (https://code.visualstudio.com/docs/getstarted/userinterface). Is it possible that I would have to change the resolution on my laptop?
Thanks.
From the menu bar at the top try
View/Apperance/Show Activity Bar
When the Activity Bar is visible, this option will show "Hide Activity Bar"
See screenshot
1.Simple go to the setting
2.Under the user settings search for Activity Bar.
3.You'd find it under the workbench.
4. Click the Activity bar visible and that's green and working.
Another way to loose Activity Bar is to accidently active Zen Mode. Check if
View/Apperance/Zen Mode
is checked and if so uncheck it.
You can also pull up the command pallet with
Ctrl + Shift + P
Then type/select
View: Toggle Activity Bar Visibility

VS Code Status Bar

Wondering if anyone can help and tell me what the icon is in the bottom left hand corner of the vs code window. I don't have it on mine and wondering if I need it.
Circled in red on the image.
Thanks
It's a Git Status, next to the git branch indicator.
Right-click on the status-bar and ✓check the Source Control option (After right-clicking on status bar ) if want it on your status bar,
Uncheck if you don't want.
That's the Git logo which is a version control app. I don't have it either but my guess is that it's a VS extension (not sure which git extension it exactly is). If you don't need version control then it's fine.