Visual Studio Code - flatten packages in explorer view

∥☆過路亽.° 提交于 2020-06-22 09:51:31

问题


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 find a similar option. I am looking for any solution which could resolve this. Either changing settings or extensions if available.


回答1:


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)




回答2:


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".



来源:https://stackoverflow.com/questions/39591443/visual-studio-code-flatten-packages-in-explorer-view

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!