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

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


当前回答

我在删除。idea文件夹时也遇到了同样的问题。

然而,当我试图使其失效并重新启动时,.idea文件夹再次创建,但仍然没有显示文件夹。

我不得不这么做。关闭IntelliJ, 2.删除。idea文件夹;发射IntelliJ

这解决了问题。

其他回答

我也有这个问题。 它与.idea有关,只需删除它并重新启动IntelliJ

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

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/workspace.xml对我有用。关闭项目,删除.idea/workspace.xml,然后重新打开项目。我使用的是2019.1版本。

我之前遇到过这个问题,并通过以下步骤解决了它:

右键单击“外部库”并选择“加载/卸载模块”按钮

如果您看到模块已经加载,请再次执行卸载/加载,因为这是由于IntelliJ中的错误造成的。

完成此操作后,在External Libraries部分的顶部再次看到该项目。

你不必完全退出Intellij来完成这个工作。只需关闭已打开的项目。(您可以打开任何其他项目,以避免完全关闭) 转到已安装项目的目录并删除“。想法”文件夹中。 重新打开项目。

这应该能解决问题。它在2018年5月对我有效。