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

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


当前回答

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

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

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

这解决了问题。

其他回答

删除项目文件夹中的。idea 使用项目文件夹作为现有源代码创建一个新项目

在IntelliJ 2016.2中删除全局安装的IntelliJ并在我自己的主文件夹(Linux)中重新安装后,我刚刚在一个SBT项目中遇到了同样的问题。项目视图中不再显示任何文件或文件夹。

Project Structure视图甚至不会打开,将.idea文件夹重命名为.idea.bak并重新导入项目也没有任何区别。

然而,对我来说解决它的是重新启动Linux。后来它又能正常工作了,即使是原来的。idea文件夹。看来这个“修复”不仅仅局限于Windows世界。

I have a better solution that worked for me and it might work for you. No need to delete the whole .idea folder as this way you lose the whole project. It is possible that you just accidentally excluded all folders in project settings. I also found that project folders disappeared. I was trying to find out how to disable indexing, so I was looking at Project Settings -> Modules and I clicked on Excluded to see if I could add the whole project there to ignore it for indexing. It didn't do anything and I couldn't drag and drop the folder under Excluded. What I didn't realize is that simply clicking "Excluded", IntelliJ automatically moves the folder to Excluded and all folders disappeared in Project Explorer. "Excluded" button changes background to gray, which means exclusion is active. This is a very poor user interface because it is hardly noticeable and clicking this button has a far-reaching impact on your project.

Fix:

打开项目设置->模块 如果“排除”突出显示,单击它 单击应用或关闭

结果: 项目中的文件夹再次显示出来

非常糟糕的UI设计!源和排除按钮看起来像标签时,他们的工作实际上是“复选框”!

注意,仅仅单击Sources或Excluded似乎是一个没有任何可见效果的选项卡选择,但它具有深远的影响,基本上是从构建过程中添加或删除文件。

我在从intellij 15 (v143)升级到2016.3 (v163)后遇到了这个问题。我也有一个间歇错误启动关于“加载错误:未定义的路径变量”与一个神秘的变量名。

在对这里提出的大多数解决方案进行了无数次尝试之后(重新导入项目,使缓存无效并重新启动,检查项目结构和路径……),唯一有效的是完全重新安装Intellij(删除~/. exe)。idea* ~/. intellijidea *),并在“您是否愿意迁移以前的设置”问题处选择“否”。

这终于奏效了。

将。idea文件夹备份为zip文件 删除。idea文件夹 重新打开项目 关闭项目 将备份文件解压到新生成的.idea文件夹中 重新打开项目 赞美太阳☀️\[T]/