IntelliJ - how to teach the project tree not to “shrink” individual subfolders

A small problem, and a very bad search query for google ...

If you create a folder in the SRC folder (= package), and you create a class in it, everything is fine. If you subsequently create a folder next to the class, everything is still fine.

If you create a folder in the SRC folder and then a folder in it, IntelliJ “concatenates” the path, and you cannot get to the folder to create a class next to it. - Wow, there's no way to figure this out without an example :-)

Create folder A
Create AA Folder
Create AAc Class
Create AAB folder

Everything is fine, there are no problems with navigation ...
But now try the following:

Create folder A
Create AA Folder
Create AAB folder
Create AAc Class

The last point is not so simple: the path to AA is no longer in the tree, the only available option is AAB (for example, create a class in it that will be AABc)

I know that it took more time to write this question, but just select "show in explorer" and create the folder manually, but still I'm sure there is a switch for it :-)

+4
source share
1 answer

In the project area, click the gear in the upper right corner and deselect "compact empty middle packs."

+9
source

Source: https://habr.com/ru/post/1384403/


All Articles