Given that most of us use both an editor & an IDE, every effort will be made to ensure that templates / snippets are kept consistant between the offerings supported by the Style Guide Colaborators.
- SublimeText Snippets & Completions maintained by @evanplaice & @mgechev
- Atom Snippets & Completions maintained by @d3viant0ne & @mgechev
- Visual Studio Code Snippets & Completions Needs a maintainer
Demos and Template usage guides can be found in the wiki
-
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
The first stable release will be pushed up to the JetBrains Plugin Repository
While there is a commented section for custom additions to the templates, 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.
More information on the topic can be found here