Reputation: 112887
It'd be really cool to get some code completion support here. That is, when I type
var math = require("math");
I'd love to get more than just the usual Object
properties when I type "math.
".
Support for AMD modules would be ideal, but I'd be happy with Modules 1.x, especially if the IDE or the plugin implementing the support were open source.
This could possibly be done without any special support if you knew of an IDE that dynamically executed JavaScript code on the fly to an extreme degree, e.g. one that spun up a web browser in the background so as to capture all of the crazy script-loading-via-<script />
-DOM-insertion stuff that's going on in an AMD module framework.
Upvotes: 4
Views: 1569
Reputation: 169491
I believe WebStorm is making progress on support for require
. This support is hard coupled with nodeJS support though so there supporting the particular implementation of require
that nodeJS is using.
Upvotes: 6
Reputation: 3080
The best Javascript IDEs I have used are the following.
Probably, Aptana has this feature to some extent. In most cases, you will have to provide a reference pointer to a library which would contain the methods used for code completion.
Upvotes: 0