Usually CTRL-SPACE does a lot of code completion actions in Webstorm. However I can't seem to find any quick code generation for 'for' loops.
I want something analogous to this :
Is there some reason Webstorm doesn't have this? Or has my googling been off.
You can type itin
+ ctrl+space
and your loop template will be generated.
In the autocomplete window you will see a lamp, click in it to edit you template.
Here are some examples: http://blog.jetbrains.com/webstorm/2014/08/javascript-postfix-completion/ and http://blog.jetbrains.com/webide/2012/10/high-speed-coding-with-custom-live-templates/