I was working in one project then created new one and after opening the old one it is not recognized as java project. There is no option to create class in package (as you see on the pic), empty middle packages are not hidden but this option is set on.
Why intelij-idea does not recognize java project?
Your project is fine. Your directory structure does not follow the common /src/main/java
convention and you need to mark your directories manually.
In this case, you need to right-click on your directory and perform "Mark Directory As Sources Root"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With