New in 4.0: Smarter ordering of JavaScript completion options

We are getting a lot of reports and ideas from you about the ordering of JavaScript completion options. So in WebStorm 4.0 and PhpStorm 4.0 we made small but important improvements. More relevant suggestions now appear at the top of the list in many cases.

1. Suggested names are ordered by their definition scope nesting, i.e. global variables are placed at the bottom of the list.

2. Object members are ordered by class inheritance.

3. If a local variable exists with the same name as the parameter of the called function, that variable is considered the most relevant.

These rules also apply to ActionScript completion.

You can explore these features in the new WebStorm & PhpStorm 4.0 EAP. Your comments and suggestions are welcome in our issue tracker

This blog is permanently closed.

For up-to-date information please follow to corresponding WebStorm blog or PhpStorm blog.

 
This entry was posted in Cool Feature, PhpStorm, WebStorm and tagged , , , , , . Bookmark the permalink.

3 Responses to New in 4.0: Smarter ordering of JavaScript completion options

  1. Tobiasz Cudnik says:

    Is this also supported for coffeescript?

    • Konstantin Ulitin says:

      Yes, this is expected to work in similar way, more stable behaviour for coffeescript will be available in following EAPs.

  2. I think #3 would be relevant for almost all languages. At least I’d love to see that in PHP. Good work!

Comments are closed.