Intellij Idea 2018 does not show source code
已回答
I have been using intellij idea for my project. After working a few days, I cannot open some java files in editor. After invalidate caches & restart i can open those files. But after this, if somehow i close one of those files, i cannot open those files again.
Files are in random directories. I encounter with the same problem with the same files.
请先登录再写评论。
See Configure content roots. You should configure content roots to include the directories where you source files are located and make sure the root folder of the source files is marked as a source root.
For example I have a source package aaa. In this package I have 12 java files. I can see 11 java files and source code but not 1.
Check the Settings(Preferences) | Editor | File Types -> Ignore files and folders patterns.
If issue remains please provide a sample project.