在IntelliJ IDEA中看不到项目文件夹 [英] Can't see project folders in IntelliJ IDEA
本文介绍了在IntelliJ IDEA中看不到项目文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
每隔一段时间,我打开一个旧项目,我看不到intelliJ项目查看器中的任何文件夹。我可以看到根目录下的所有文件..但没有文件夹。是的我可以删除.iml文件和.idea文件夹并重新创建项目,但是来吧......必须有一种更简单的方法来解决这个问题。
Every once in a while, I open an old project and I can't see any of the folders in the intelliJ project viewer. I can see all the files at the root.. but no folders. Yes I can delete the .iml file and .idea folder and re-create the project, but come on.. there's gotta be an easier way to fix this.
是那里?
推荐答案
如果查看项目设置(ctrl-shift-alt-s),你应该看到一个模块结构。如果你看到什么都看不见,请执行以下操作:
If you look in project settings (ctrl-shift-alt-s), you should see a module structure. If you instead see "Nothing to see", do the following:
- 在项目结构 - >模块中,按+按钮,
- 按回车(由于某些奇怪的原因,它不会让我点击新模块)
- 在弹出的窗口中,点击内容根目录旁边的...,找到您的根文件夹,然后选择它
- 按确定
- 忽略任何警告该名称已被使用(或为此效果)
- In Project Structure -> Modules, press the + button,
- press enter (since, for some weird reason, it won't let me click on "New Module")
- In the window that pops up, click on the "..." next to Content root, find your root folder, and select it
- Press ok
- ignore any warning that says the name is already in use (or to that effect)
这篇关于在IntelliJ IDEA中看不到项目文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文