When using WebStorm without the built-in TypeScript Compiler (eg because you are running an Angular2 project with their npm start
script which does the compiling already) and the other method doesn't work, you can configure your own filtered "Project" panel for WebStorm:
Project Files
section of the side panel ( Project
section does not offer the needed config menu) *.js
and *.js.map
files (I am using !file[my-root-folder]:app//*.js&&!file[my-root-folder]:app//*.js.map
) Project
or Project Files
) under the name you set the scope. 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 )
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.