Question

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.

Was it helpful?

Solution

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.

See a Ticket and a Plugin

OTHER TIPS

The best Javascript IDEs I have used are the following.

  1. Aptana IDE/ Aptana Eclipse Plugin
  2. Microsoft Expression Web/ Visual Studio
  3. Eclipse JSDT (Javascript Development toolkit)

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top