Reputation: 4237
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
Reputation: 1038
Preferences -> Directories
Mark the folders you want to Exclude as Excluded.
Upvotes: 0
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
Reputation: 18869
The File Types
exclusion option does not support paths. However, the following, I believe, comes close to what you wish:
This custom scope will exclude app/*.js
like so:
Pattern is : !file:*/app/*.js
(Notice from the snapshot that this pattern excludes app
but not app2
)
Click here and select the scope you create earlier:
Your Project view should now change from:
to:
Upvotes: 6