VS Code not showing subfolders when there is only one

Visual Studio-Code

Visual Studio-Code Problem Overview


My VS Code is not showing the sub folders when there is only one folder, it only shows when there is 2 or more. I attached a screenshot to show an example. I would like to make it show all the folders. I have been looking for how to make it go back to showing all the folders but could not find how.

vs code screenshot

If I add more folders it goes back to normal. I would to make it show the Search folder even if it is the only folder inside Input.

enter image description here

Visual Studio-Code Solutions


Solution 1 - Visual Studio-Code

For anyone with the same issue, I figured out how to disable this. You need to look up explorer.compactFolders in File > Preference > Settings and disable it.

Solution 2 - Visual Studio-Code

That's explained in November 2019 (version 1.41) release notes. The feature is called Compact folders in Explorer:

> In the File Explorer, we now render single child folders in a compact > form. In such a form, single child folders will be compressed in a > combined tree element. Useful for Java package structures, for > example. > > Setting explorer.compactFolders controls this behavior. By default, > this setting is turned on.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionWindboxView Question on Stackoverflow
Solution 1 - Visual Studio-CodeWindboxView Answer on Stackoverflow
Solution 2 - Visual Studio-CodeÁlvaro GonzálezView Answer on Stackoverflow