Skip to main content
r/vscode icon

r/vscode

members
online

How to prevent VSC from collapsing subfolders How to prevent VSC from collapsing subfolders

Hi there, I'm struggling with VSC's collapsing behaviour.

Say I have the following:

parentFolder
---childFolder1 (currently selected)
---childFolder2
---childFolder3

if I select the parentFolder, all children folders get collapsed within the parentFolder as VSC thinks I want to collapse the whole directory. That's not the case VSC, I just want to create a script.whatever inside the parentFolder.

Do you know how to get around it? In PyCharm I've never had this issue. I just changed these properties to these settings:
"explorer.autoReveal": false,
"explorer.compactFolders": false

But it still does not help me achieve the behaviour I want.

Appreciate any help


Introducing Meta Ray-Ban Display. The world’s most advanced AI glasses, now with in-lens display.
media poster