Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

javascript 'for loop' code completion in Webstorm

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 :

enter image description here

Is there some reason Webstorm doesn't have this? Or has my googling been off.

like image 473
Oliver Watkins Avatar asked Apr 07 '26 11:04

Oliver Watkins


1 Answers

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/

like image 92
Victor Avatar answered Apr 08 '26 23:04

Victor



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!