-
Notifications
You must be signed in to change notification settings - Fork 20
Home
- Clone repo or download Angular2-StyleGuide-LiveTemplates.xml individual templates are also available here
- Place the XML file in your templates folder: On OSX that would be ~/Library/Preferences/WebStorm{Version}/templates
- Restart WebStorm
Until the templates stabilize, I would expect changes based on either Angular2/TypeScript the StyleGuide or user feedback on how they flow.
When using the main Angular2-StyleGuide-LiveTemplates.xml
I am leaving a section at the bottom of the XML file for users to add their own Templates.
Adding your extensions / customizations in this section will simplify updates from ~HEAD
Note - WebStorm/IntelliJ will reformat the XML file as soon as you edit a template & save.
I would highly suggest you commit customizations to a fork of this repo and copy the file into your templates folder. It will make picking up changes from ~HEAD much less painful.
- Issues & Pull requests for any problems in usability/flow or deviations from the StyleGuide are always appreciated.
- Please keep in mind these templates are based off what is defined in the StyleGuide, this is not the place to debate those style guidelines. This is the place for any discussion
- Remember a change to a Template / Snippet has to be coordinated across three different repositories. I will merge appropriate PR's when I can coordinate the changes across all of the repos to maintain consistency.
Lastly, I hope these templates are helpful. If you have any questions or problems, open up an issue
Component Templates
Directive Templates
HTML Built-in Directives
Pipe Templates
Route Configuration Templates
Route Templates
Service Template