Project Files section of the side panel (Project section does not offer the needed config menu)
Click on the gear icon to configure enter image description here
Select "Edit Scopes" from that menu
Add a new Scope
Set the Pattern to an appropriate filter to exclude the .js and .js.map files (I am using !file[my-root-folder]:app//.js&&!file[my-root-folder]:app//.js.map) You can select this scope as a section of the side panel (instead of Project or Project Files) under the name you set the scope.
如果你没有使用webstorm内置的Typescript编译器, 而是直接使用angular 2 的npm start,angular会帮你把typescript都编译好了,所以其他的方法都不管用。 你可以在Webstorm中配置"Project" 面板,
Project Files section of the side panel (Project section does not offer the needed config menu)
Click on the gear icon to configure enter image description here
Select "Edit Scopes" from that menu
Add a new Scope
Set the Pattern to an appropriate filter to exclude the .js and .js.map files (I am using !file[my-root-folder]:app//.js&&!file[my-root-folder]:app//.js.map)
You can select this scope as a section of the side panel (instead of Project or Project Files) under the name you set the scope.
See more information: http://stackoverflow.com/ques...