Search code examples
visual-studio-code

vscode disable empty folders (parent/child folders) merge/collapse/inline


If child folder is empty, vscode get them merged like on screenshot. Is there an option to disable it? It's confusing and harder to use for me.

enter image description here


Solution

  • Disable/uncheck Explorer: Compact Folders in your settings.

    Related info from release notes: Is there a way to flatten or merge single-folder folders in vs code explorer?

    Or directly in your settings.json, add "explorer.compactFolders": false.

    To reach settings.json, use Ctrl+Shift+P to open the command palette, then type "settings.json" and hit enter (the item is called "Preferences: Open Settings(JSON)")