Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide unnecessary files from intellij project view?

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

like image 423
vach Avatar asked Oct 01 '15 11:10

vach


People also ask

How do I change project view in IntelliJ?

To change settings of a module that hosts the file you are currently editing, just press Alt+F1, 7 or open the View menu, select Select In and click Project Structure. IntelliJ IDEA will open the Project Structure dialog and jump to the required module.

How do I hide .idea in IntelliJ?

Press ⇧⌘F12 (macOS), or Ctrl+Shift+F12 (Windows/Linux), to hide all the windows so that you can focus on your code window.


1 Answers

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

like image 86
jtonic Avatar answered Sep 20 '22 20:09

jtonic