Usually CTRL-SPACE does a lot of code pletion 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.
Usually CTRL-SPACE does a lot of code pletion 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.
Share Improve this question asked Dec 5, 2014 at 12:26 Oliver WatkinsOliver Watkins 13.6k39 gold badges134 silver badges252 bronze badges2 Answers
Reset to default 6You can type itin
+ ctrl+space
and your loop template will be generated.
In the autoplete window you will see a lamp, click in it to edit you template.
Here are some examples: http://blog.jetbrains./webstorm/2014/08/javascript-postfix-pletion/ and http://blog.jetbrains./webide/2012/10/high-speed-coding-with-custom-live-templates/
Please see Settings/Editor/Live Templates, javascript - there are some snippets for different for loops generation