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

后端 未结 4 947
故里飘歌
故里飘歌 2021-02-02 07:49

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

The files are not completely hidden.

4条回答
  •  眼角桃花
    2021-02-02 08:45

    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.

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

提交回复
热议问题