Hide/Remove directories in Project Explorer
I've a project with multiple directories each related to a certain feature which are often not required when working on part of the code base. It makes the project view super "busy" since I've lots of directories in my project.
I'm looking for a way to hide/remove those directories from the project explorer so that I can focus only on the directories in my project I'm currently working on.
I'm not sure if there's such a feature already existing in intellij - if not I'm willing to write a plugin for myself to fulfill this requirement
If someone could point me to APIs which I can use to hide/remove certain directories from loading in Intellij altogether when I open my project or if there's already a feature built into the IDEA, I'd really appreciate it!
Best
Please sign in to leave a comment.
Is there config file that can be modified to automate this process rather marking each directory manually?
I looked for the intellij configuration file that would contain the settings for excluded/hidden folders but I couldn't find it under .idea directory and there's no .iml file in the project either.
What kind of project do you have? Is it Maven-based? Is it multi-module?
Its not maven. Its multi module project
Is there a corresponding .iml file in each module's directory?
Can you share a screenshot of your project tree?
For those who accidentally hide your root directory, you can check this out for the solution
I had to search this setting for days.
Configure folder structure - Cancel Exclusion:
https://www.jetbrains.com/help/idea/content-roots.html#configure-folders