Exclude directory but include one of its subdirectories

Hello,

If in your source code path you have a particular directory with 1000 subdirectories, of which you want to edit only one in IntelliJ: is there a way to exclude all the 1000 other subdirectories, but include that one particular one?

If you exclude the parent directory, it makes it impossible to then include ("mark as source" or "mark as resources") that one subdirectory.

And trying to exclude all 1000 other subdirectories makes IntelliJ hang.

Thanks!

2 comments
Comment actions Permalink

And again my question remains unanswered... Am I asking too much of IntelliJ? Am I hellbanned? :(

0
Comment actions Permalink

Hello.

So, E is excluded directory, E/R is sub-directory you want to include.

Then for example such a way: create a module with content root = R. R may be set source root, if necessary.

Regards,
Alexander.

0

Please sign in to leave a comment.