IntelliJ IDEA文件夹而不是项目视图中的包 [英] IntelliJ IDEA folders instead of packages in project view

查看:906
本文介绍了IntelliJ IDEA文件夹而不是项目视图中的包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在IntelliJ IDEA中是否可以在项目视图中显示文件夹而不是包? Eclipse中有这样的功能:我们可以从包浏览器切换到项目浏览器,然后我们就可以了。

Is it possible in IntelliJ IDEA to show folders instead of packages in project view? There is such a feature in Eclipse: we can just switch from "package explorer" to "project explorer" and here we go.

为了更清楚:

我希望看到包作为文件夹的层次结构。

I want to see packages as hierarchy of folders.

我想看到这个:

I wanna see this:

但我看到了这一点:

推荐答案

是的你可以将查看为从包切换到项目。

Yes you can switch "View as" from Packages to Project.

对于展开文件夹,取消选中Compact Empty Middle Packages

For expanding folders uncheck Compact Empty Middle Packages

这篇关于IntelliJ IDEA文件夹而不是项目视图中的包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆