简体   繁体   English

Intellij不显示项目文件夹(Python项目)

[英]Intellij not showing project folders (Python project)

This crops up from time to time. 这不时出现。 One day when I open Intellij my directory listing of the files are all gone and I just see the top level. 有一天,当我打开Intellij时,所有文件的目录列表都消失了,我只看到了顶层。
在此处输入图片说明

I see answers for this question for Java but I'm not using Java for anything. 我看到了针对Java的此问题的答案,但是我什么都没有使用Java。 Is there any way to fix this besides deleting the .idea/ folder and setting all my preferences again? 除了删除.idea /文件夹并再次设置我的所有首选项外,还有什么方法可以解决此问题?

Yes, I noticed this as well and I don't use Python. 是的,我也注意到了这一点,并且我不使用Python。 I can agree that the only solution I found was 我可以同意,我发现的唯一解决方案是

  1. Close Intellij. 关闭Intellij。
  2. Delete .idea folder 删除.idea文件夹
  3. Open project folder again. 再次打开项目文件夹。

Unfortunately in this case we loose our specific project settings. 不幸的是,在这种情况下,我们失去了特定的项目设置。

One thing for Python is that you need to have a python plugin for Intellij IDEA and I noticed that PyCharm works a little bit better (I guess because it is designed for Python). 对于Python来说,一件事是您需要为Intellij IDEA安装一个python插件,我注意到PyCharm的工作要好一些(我想是因为它是为Python设计的)。 Maybe you could try to change to PyCharm and see if that helps. 也许您可以尝试更改为PyCharm,看看是否有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM