我对IntelliJ有问题。在左边的项目视图中没有显示任何文件夹。 我的设置是“查看为:项目” 我如何管理它,以便再次显示文件夹和包? 我什么都不知道,因为我没有改变任何选项!

我使用的是IntelliJ 10.0.3。 我正在做一个Maven升降机项目。


当前回答

项目结构=>模块=>选择你的模块=>路径=>确保选择了“继承项目编译输出路径”

其他回答

我不得不退出Intellij并删除。idea文件夹(我先把它藏起来,以防万一)。然后我重新打开了这个项目,这对我来说很有效。 不要忘记在此之前保存你的配置(例如调试/运行配置),因为它们也会被删除。

因为我有同样的问题,上面没有一个对我有效,这就是我所做的!我知道这是一个暴躁的解决方案,但至少它最终起作用了!我不知道为什么只有这种方法有效。应该是我电脑里的某个奇怪缓存吧?

I did close IntelliJ I did completely remove the .idea folder from my project I did move the folder demo-project to demo-project-temp I did create a new empty folder demo-project I did open this empty folder with intelliJ I did move all the content demo-project-temp. Don't forget to also move the hidden files Press right click "Synchronize" to your project You should see all the files and folders now! Now you can also safely remove the folder demo-project-temp. If you are on linux or MAC do it with rmdir demo-project-temp just to make sure that your folder is empty

对我来说,从项目目录中删除。idea文件夹是可行的。

选择模块设置并进行这些更改,它将工作

在文件>项目结构>模块中,点击“+”按钮,

根据你的项目添加新的模块,比如Java或RUBY之类的 然后应用,ok

我使用了WebStorm中的IDE修复功能,没有删除.idea,以便重新显示文件夹。