How to hide unnecessary files from intellij project view?
Asked Answered
B

2

9

Given a sample gradle project with project structure as shown:

enter image description here

As you can see there are bunch of stuff you actually dont ever need to see in idea but you need them to exist...

I know about ignored file/folder types under Editor/File Types but those are affecting the libs and projects, idea will ignore them everywhere while i only need to hide few unnecessary entries in project view.

Primary question : how do we hide them from project view?

Also for very big projects somethimes it is easy if some related modules are shown one after another... but do not do like that alphabeticaly.

Secondary question : is it possible to have customized order in project view?

I'm using Intellij 15 EAP IU-142.5047.6

Briquette answered 1/10, 2015 at 11:11 Comment(0)
L
11

Usually I use the Scopes support for filtering out/in elements. I like this support and it can be use as the scope for other tool windows such as Hierarchy Call, and Find in path dialog. Moreover you can have many scopes and easily switch between them. The support for scratch files and version control - change sets - benefits from scopes support.

In order to create a new Scope:

  1. open Settings > Appearance & Behavior > Scopes

  2. Create a new scope by clicking on + icon

  3. and then use include/exclude (recursively)

Kind regards

Lavadalavage answered 1/10, 2015 at 19:23 Comment(0)
S
6

In IntelliJ, version 2022.1.3 Ultimate Edition:

  • Settings -> Editor-> File types
  • select "Ignored Files and Folders" tab
  • Click on the "+" sign to add the file extension to be ignored (files with this extension will not be displayed in the "Project" view).
Shores answered 6/7, 2022 at 8:11 Comment(3)
no way to specify a folder? for example i have few root directores on project level and i'd like to ignore them, not see them at all, there are too many extensions, and some of them i cant ignore cos it might be contained in project itselfBriquette
exactly like in the image you see i have gradles distro showin, like who ever needed it?Briquette
@Briquette You can specify the folder name as well as the filename as suggested by belgoros.Mondrian

© 2022 - 2024 — McMap. All rights reserved.