IDE autocompletion for javascript AMD loading style [closed] IDE autocompletion for javascript AMD loading style [closed] javascript javascript

IDE autocompletion for javascript AMD loading style [closed]


You might be looking for TernJS. It declares support of RequireJS via a plugin

It is the best tool I know for the job. Tern is rather RAM-hungry, though (compared to a pure text editor).Integration with Sublime Text is seamless, and with other Sublime plugins you can bring it quite close to a definition of IDE.

Below is an excerpt from TernJS documentation:

Tern is a stand-alone code-analysis engine for JavaScript. It is intended to be used with a code editor plugin to enhance the editor's support for intelligent JavaScript editing. Features provided are:

  • Autocompletion on variables and properties
  • Function argument hints
  • Querying the type of an expression
  • Finding the definition of something
  • Automatic refactoring

Tern is open-source (MIT license), written in JavaScript, and capable of running both on node.js and in the browser. Editor plugins

There is currently Tern support for the following editors:

  • Emacs
  • Vim
  • Sublime Text
  • Brackets (built in to the base editor)


Well I am using PHPStorm 8.1 (Webstorm should be ok also) now and...AMD autocompletion works well !I just declare my js packages as javascript libraries :

Settings > Languages & Frameworks > JavaScript > Libraries > Add...

add and point to each of your packages'folder and enjoy :) Have to mention JetBrains IDE rocks, give it a try, sure you will adopt it since - at least - it resolves AMD style...


http://plugins.jetbrains.com/plugin/7264?pr=ideaIt hasn't autocomplete and shortcuts are little bit difficult:) But very useful for me.