VSCode SCM tab suddenly disappeared - visual-studio-code

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:

Related

VSCode "Open Editors" panel not showing

I don't know what I have done but I cannot see the "Open Editors" panel in the Explorer view
I note also that clicking on the three dots (Views and More Actions...) to the right of the word Explorer at the top of the explorer panel the word Folders is greyed out
Can anyone point me to the setting I need to change in order to rectify this situation?
Just in case anyone else has the same problem here is how I resolved my issue. I won't bore you with how I discovered the solution.
Right-click in the activity bar, this will bring up a context menu with the entry for Open Editors listed but not marked with a tick
Activity bar context menu.
Clicking on "Open Editors" in this context menu brings up a new icon in the activity bar that looks like an open book
Open Editor icon
Right-clicking on this new icon reveals another context menu that includes the option to reset the location of the Open Editors panel.
Open Editor context menu
Selecting this option resolves the problem.
How I got into the problem in the first place is still difficult to ascertain. With the activity bar in its default configuration I must have dragged the "Open Editors" header to somewhere on the activity bar, that clearly removes it from the Explorer side bar but how I inadvertently right clicked this new icon and selected "Hide 'Open Editors'" without realising remains a mystery.
Go to view and click on Open View and the on Open Editors.
3 dots on extreme right hand side has an option - keep editors open --> set it to default view. Once done the open editor will be be visible on the left.
This is considering you have default vs code layout...
I am currently using version: 1.68.1
In VS Code, go to Settings and in the search box, type explorer.openEditors.visible. Set the value in the dialogue box to any number greater than 0 and you are good to go. Refer to the image below.

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.

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

VSCode bring back something that was removed from sidebar

I had a bunch of projects open in VSCode and to clean up my left sidebar, I right clicked on them and clicked "Remove from Sidebar"
This removed the folders that I wanted to be removed from my sidebar. When I tried to re-open any of these folders, however, VSCode does nothing. I can open folders that I have not previously removed from the sidebar, but for ones that I have removed, they will not open.
Any help would be appreciated!
If you right clicked and "hide from side bar" something in visual studio code, you can get it back.
Simply right click the name of the side bar, at the top. A list of every panel in the side bar is displayed with checkmarks next to it.
Select the one without a checkmark and it comes back.
This also works if you have accidentally hidden the call stack panel from the debug side bar, for example.

Netbeans Project Panel toggle

Is there any keyboard short cut in netbeans for toggling between project panel.
For example if I'm working on a laptop and sometime I need for space for see the code window and always I have to click on the project's panel to hide it.
Is there any way I can quickly hide and show that left side thing?
You can use Shift + ESCAPE to maximize the current window (e.g. the code editor).
Alternatively, right click on the editor's tab for the current file and choose "Maximize"
you can use shift+esc to hide or show your project panel.