visual-studio-code

How can I find and restore a missing View, View subsection, or Panel in VS Code?


My desired behavior for the Explorer View in VS Code is that, when I open a folder, all of the files in the folder display in it. Currently, it only shows "Open editors" (which isn't quite what I want), "Outline", and "Timeline". When I create a workspace for a folder, however, the files in these folders preview (this is the behavior I want, without having to create a workspace!)

Here's what I'd like it to look like: screenshot


Solution

  • I'll write talking about your specific case with the Folders subview of the Explorer view, but the steps should apply in general to any View, subview or Panel.

    You might have accidentally hidden it, in which case you can unhide it by right clicking in the activity bar and then clicking its entry in the context menu to give it a checkmark there again indicating that you want it to not be hidden.

    This might have been caused by moving (drag and drop) the subview/viewlet to some other are of the workbench. I'll give instructions for the Folders subview of the Explorer View, but these instructions can generalize to any subview of a View.

    There's the "Secondary Side Bar" (also called "Auxillary Bar"), which you can toggle by using the View: Toggle Secondary Side Bar Visibility command in the command palette (bound by default to ctrl+alt+b on Windows and Linux- not sure what for macOS). Check if you moved it there, and if you did, Click and drag the "Folders" icon (/) at the top left of it back to the Explorer View.

    Check also the Panel area (usually docked to the bottom of the screen), which you can toggle with the View: Toggle Panel Visibility in the command palette (bound by default to ctrl/cmd+j). Check the tab strip in the title bar there to see if there's one that says "Folders". If it's there, drag and drop it back into the Explorer View.

    If neither of those work, you can take the "nuclear option" and reset all your Views and Panels to their default positions using the View: Reset View Locations command in the command palette.