AngularJS live templates for Jetbrains IDEs like IntelliJ IDEA, PhpStorm or WebStorm.
- Angular Module
- Angular Config
- Angular Run
- Angular Factory
- Angular Controller (utilizing controllerAs vm)
- Angular Directive (generic)
Installation is currently just possible by hand. JetBrains IDEs provide an integrated Import/Export functionality which is based on JAR files. However, it is not possible to exports a custom subset of all live templates. Hints for a better workflow are appreciated.
- Open Settings
- Editor → Live Templates
- Select Section
AngularJS
- Click the
+
button - Define a
Abbrevation
andDescription
- Paste the appropriate live template into
Template text
- Check box "Reformat code according to style" (optional)
- Select context
JavaScript → Statement
- Hit
Apply
and start using it!