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: http://dojotoolkit.org/reference-guide/1.8/dojo/fx.html#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.

Thanks!

Please sign in to leave a comment.