Dojo code completion (maybe also requires and AMD modules)

Given this JavaScript code:

require(["dojo/dom", "dojo/fx", "dojo/domReady!"], function (dom, fx) {
     // Code to insert goes here

I'd like to type "fx." and have WebStorm code completion suggest a reasonable subset of functions off of the fx objection, maybe something corresponding to the methods under dojo/fx: But in reality, here's what I get:

Now, somewhere, way down on the list, is fadeIn(), for example. And if I start typing "fx.fade" (for example), I'll get a more limited set of options. But is there a way to tune WebStorm to provide more useful set of autocompletes?

Additionally, I notice that the dojo/fx module includes functions like wipeIn(), wipeOut(), slideTo(), etc. that don't even come up as autocomplete options. Is this something that WebStorm can do? If not, is it a pending feature? If not, I'll file a feature request.


Please sign in to leave a comment.