Just a dump of handy live templates I use with IntelliJ. They should also work with WebStorm.
- Go to
settings. - Search for
live templates. - Under the javascript section you should be able to manage your templates.
For each template in this gist:
- create new template
- fill
abbrevationwith the@abbrvalue. - fill
descriptionwith the@descvalue. - copy/paste the code.
- click on edit variables
- for each variable:
- fill
expressionwith the{}value of the@param. - fill
default valuewith the[]value of the@param.
- fill
Feel free to enhance or add new live templates.
Also feel free to host an export jar file and link it here :)