Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide .js and .map files in WebStorm while working on Angular2-typescript project

I tried adding the extensions to .gitignore but the result is as below:

webstorm file explorer

The files are not completely hidden.

like image 414
runtimeZero Avatar asked Mar 23 '16 16:03

runtimeZero


2 Answers

For me, using the Project panel, rather than the Project Files panel did the trick collapsing the *.js and .js.map files and hiding them beneath their corresponding *.ts file.

enter image description here

Note: This is only working when WebStorm's TypeScript Compiler is enabled. (see A_Singh's answer)

like image 156
sleidig Avatar answered Nov 16 '22 02:11

sleidig


  • Enable Typescript Compiler (Generated files are hidden when compiler generates them)

enter image description here

  • Change your view to Project as suggested by Cibes

enter image description here

like image 11
Ankit Singh Avatar answered Nov 16 '22 02:11

Ankit Singh