Skip to content
Joshua Wiens edited this page Mar 6, 2016 · 11 revisions

Angular 2 Style Guide WebStorm Live Templates Guide

Angular 2 Style Guide Join the chat at https://gitter.im/mgechev/angular2-style-guide

Installing the templates

Customizing & Extending templates

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.

User Custom XML Comment

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.

Contributing

  • 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