Vscode 禁用空文件夹(父/子文件夹)合并/折叠/内联

如果子文件夹为空,vscode 会像屏幕快照那样合并它们。有没有办法让它失效?对我来说很困惑,也很难使用。

enter image description here

26480 次浏览

Disable/uncheck Explorer: Compact Folders in your settings.

Related info from release notes: Is there a way to unify single-folder folders in vs code?

In VsCode on MAC go to Code (top left hand corner)

  1. Select Preferences
  2. then Settings
  3. then Search for compact folders
  4. Uncheck the

enter image description here

In VsCode on WINDOWS go to File (top left hand corner)

  1. Select Preferences
  2. then Settings (or you can simply press Ctrl/Cmd+,)
  3. then search for Compact Folders
  4. Unckeck the option