I had this message that said "Vscode is corrupted" on the bottom right corner of vscode, and I clicked on the settings icon on the message and checked "Don't show again" (the reason why my installation is corrupted doesn't matter, that's not at all the context of this question)
I want to revert that => I want to see that message again on every launch, just like it used to
So how to revert that action without resetting vscode? I checked in vscode settings but didn't find anything related.
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.
I'm trying out Visual Studio Code. Yesterday, I opened a file outside of the git directory I was working in. I eventually moved and renamed the file and somewhere along the line, I ended up with the empty panel shown in the attached screenshot. I tried clicking every GUI element and every menu item and I could not get rid of it. I could close that file and it would go away, but once I re-opened it, it would come back, so it seemed to be associated specifically with that file.
I could split the view and add more tabs, but there was no way to get rid of it. I selected view > editor layout > single many times and it would not go away. All I could do was make it smaller by dragging the vertical divider.
This morning, I closed it and re-opened it, and it was gone. Unfortunately, despite trying to reproduce the steps that lead to that empty panel, I could not make that panel show up again.
Does anyone know what that panel was, why it was appearing with that file, and how to make it go away if it happens again?
That file basically shows you all the edits you've made since you last saved the file in git. By clicking on the source control button on the activity bar on the left side you can view your changes on the files you're working on. You can't actually edit it, it just shows the changes you've made.
To actually open the file and edit it you can either go back to the top left button called explorer on the activity bar or click on the little file button next to the name of the file (next to the + sign and the arrow).
Checkout this video by vscode which explains it
I made an error yesterday when I was editing for a web contest, but no matter how hard I tried to send those edits to GitHub, I had to try the options in VS as usual to solve various problems. But I pressed an option without thinking and the E light disappears in the image below. Now I do not know how to return it.
And now my VS is like this
Open Settings using the shortcut Ctrl + ,
Search for "Workbench Status Bar" and look for the following option
Tick this checkbox
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: