Alex Rivera | Logout

Eclipse JavaScript Editor: content assist for js files, autocompletion

Asked 2009-06-17T13:15:38.987
41

I'm trying Eclipse (with JavaEE and Web Development plugins) as a JavaEE/GoogleAppEngine IDE. In HTML editor if I put a <script ... src="..." /> in <head> I automatically get content assist for JavaScript in the referenced file. I was wondering if it was possible to obtain content assist for other JavaScript files (e.g. jQuery or homebrew js library) inside JavaScript editor.

Edit
Report

2 Answers

8

imo, Aptana is the best eclipse plugin for js editing. It includes support for many of the major libraries like jQuery, yui, dojo, etc.

Spket, however is also good. Though mostly if you do firefox extension development (getting a little out of date though)

The built in js editor is terrible. it claims there are errors all over the place even when there clearly are not.

answered 2009-06-17T13:18:18.403
3

I tried and failed at many suggestions. About to give up I came across this:

  1. Search for JSDT jQuery from the Eclipse market place and install. I found JSDT jQuery 1.5.0.
  2. Right click on your project and configure build path (I know I wish it were workspace level too).
  3. Go to JavaScript > Include Path and click Add JavaScript Library...
  4. Choose jQuery. This is v1.8 support. I looked but couldn't find anything newer.
  5. Restart Eclipse and viola.

Finally, right?!

answered 2013-02-07T00:06:05.480

Your Answer