Visual Studio Code - flatten packages in explorer view

前端 未结 2 1303
囚心锁ツ
囚心锁ツ 2021-01-02 02:20

I would like to know if anyone knows how to flatten the package structures in Visual Studio Code.

I used to have this in my IntelliJ IDE, but with VS Code I can\'t f

相关标签:
2条回答
  • 2021-01-02 02:52

    This is supported since the 1.41 release (November 2019) and enabled by default. VSCode calls this feature "compact folders", and it can be disabled like this:

    "explorer.compactFolders": false
    

    (gif from the release notes)

    0 讨论(0)
  • 2021-01-02 03:02

    For java the only way i found is using this extension (it won't change the default file explorer, but you can fold that one and use this one instead).

    https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-dependency

    or goto your VSCode->Extensions and search for "Java Dependency Viewer".

    0 讨论(0)
提交回复
热议问题