I'm looking for some way to reduce the visible size of directories in the explorer, that only have one directory/file in them. I'm not quite sure how to explain this, but basically I want to turn this:
OPEN FOLDER
-ChildFolder
--GrandchildFolder
---GreatgrandchildFolder
---file
---file
Into this:
OPEN FOLDER
-ChildFolder\GrandchildFolder
--GreatgrandchildFolder
--file
--file
GitHub does something like this, for example on https://github.com/Bukkit/Bukkit/tree/master/src (a java project), you see test/java/org/bukkit (hovering shows "this path skips through empty directories").
Is there any way to do this in VSCode? It's pretty minor but would be really nice to have when working across multiple java projects.
You cannot currently auto-hide the explorer. The GitHub issue tracking this is #3742. ctrl + b (Windows, Linux), cmd + b (OS X) is the keybinding to manually toggle the side bar.
This should be available mid-december 2019 with VSCode 1.41.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With