Illidan
Illidan

Reputation: 4237

IntelliJ - how to hide file types in specific folder?

I developing TypeScript application using IntelliJ IDE, and I want to hide *.js files from 'app' folder only. I don't want to hide js files globally, since I do need to see them in other places (e.g. in node_modules folder).

Currently I have IntelliJ 2016.1.4

I was trying to add relevant path into "Settings->Editor->File Types->Ignore files and folders":

-> nothing seems to work

If I trying to hide 'app' or '*.js' - it does works.

So - is there any support for hiding specific file type in specific folder?

Upvotes: 1

Views: 1392

Answers (3)

Toby Beresford
Toby Beresford

Reputation: 1038

Preferences -> Directories

Mark the folders you want to Exclude as Excluded.

Upvotes: 0

Nante
Nante

Reputation: 49

Go to: File > Settings > Editor > File Types

at the bottom you can find Ignore files and Folders, that is a list of extensions that you don't want to see in the project scope.

For example *.c;

Upvotes: 4

Ashutosh Jindal
Ashutosh Jindal

Reputation: 18869

The File Types exclusion option does not support paths. However, the following, I believe, comes close to what you wish:


Step 1 : Create a custom scope

This custom scope will exclude app/*.js like so:

enter image description here

Pattern is : !file:*/app/*.js (Notice from the snapshot that this pattern excludes app but not app2)


Step 2 : Configure Project view to use this custom scope

Click here and select the scope you create earlier:

enter image description here

Your Project view should now change from:

enter image description here

to:

enter image description here

Upvotes: 6

Related Questions