最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript 'for loop' code completion in Webstorm - Stack Overflow

programmeradmin4浏览0评论

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 badges
Add a ment  | 

2 Answers 2

Reset to default 6

You 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

发布评论

评论列表(0)

  1. 暂无评论