Reputation: 687
This topic/issue is easy, but so far I haven´t found the right way to make it work and that takes me a lot of time, dealing with the creation of subfolders.
Let´s take this example
I created a folder under resources called META-INFO:
When I create a subfolder I would like to have this structure
resources
-META-INFO
-newfolder
But this is what in reality happens
This also often happens in my main folder, when creating packages Instead of having this:
com.myproject.demo
-model
Does this
com.myproject.demo.model
Is there a missing configuration? I looked at similar topics, but I couldn´t find the solution. As well I looked at videos, but no success.
Any suggestions?
Upvotes: 2
Views: 1705
Reputation: 1
Frist of all, I click thi the three vertical dots icon.
Then I Click to Flatten Packages.
Upvotes: 0
Reputation: 115
just uncheck the option "Hide Empty Middle Package" from the project drop down menu (wheel like drop down menu on the top)
Upvotes: 1
Reputation: 1061
The folder is treated as part of a package thus the .-notation.
If you disable the option "Flatten packages" you will get the tree structure to show instead. However the directory structure is still proper. Also you can switch to "Project Files"-view rather than "Project" to see it as directories.
This should be the relevant documentation as well: https://www.jetbrains.com/help/idea/project-tool-window.html
Upvotes: 1