Hide excluded folders from tree in IntelliJ IDEA

Intellij IdeaIntellij 14

Intellij Idea Problem Overview


After updating to IntellijIdea 14 I have discovered that an excluded folder in my project is now visible.

Image of intelliJ folder structure with hidden folder visable

How do I hide it?

Intellij Idea Solutions


Solution 1 - Intellij Idea

The answer is close, in the Project gear menu: enter image description here

PS: Yes, it's a self-learning post

Also, you may have switched on the Show Excluded Files option. If so, use Shift + Shift and type excluded and do the obvious thing. show excluded files toggle

Solution 2 - Intellij Idea

Right click at the directory you want to exclude to mark it as excluded, enter image description here, and then uncheck the Show Excluded Files option. enter image description here

Solution 3 - Intellij Idea

1: Intellij IDEA > Preferences.

2: Go to File Types.

3: Add *.iml and *.idea to the Ignore files and folders list box at the bottom of this window.

Solution 4 - Intellij Idea

In case you want to show excluded files instead of hiding them, you can invoke the Find action Window (e.g. Shift+Shift), search for Show Excluded Files and then turn it on or off. Sometimes there may not be this option in the Find action window somehow (such as me using the version 2019.3.3), but you can still toggle it by adding <option name="showExcludedFiles" value="true" /> to the node in .idea/workspace.xml:

<component name="ProjectViewState">
  ...
  <option name="showExcludedFiles" value="true" />
</component>

Then restart the project window.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSeniorJDView Question on Stackoverflow
Solution 1 - Intellij IdeaSeniorJDView Answer on Stackoverflow
Solution 2 - Intellij IdeaHunter ZhaoView Answer on Stackoverflow
Solution 3 - Intellij IdeaChaosView Answer on Stackoverflow
Solution 4 - Intellij IdeaIvan HuangView Answer on Stackoverflow