133

I'm looking for the best JavaScript editor available as an Eclipse plugin. I've been using Spket which is good. But, is there more better one?

0

8 Answers 8

55

Eclipse HTML Editor Plugin

I too have struggled with this totally obvious question. It seemed crazy that this wasn't an extremely easy-to-find feature with all the web development happening in Eclipse these days.

I was very turned off by Aptana because of how bloated it is, and the fact that it starts up a local web server (by default on port 8000) everytime you start Eclipse and you can't disable this functionality. Adobe's port of JSEclipse is now a 400Mb plugin, which is equally insane.

However, I just found a super-lightweight JavaScript editor called Eclipse HTML Editor Plugin, made by Amateras, which was exactly what I was looking for.

12
  • 2
    +1: Eclipse HTML Editor Plugin installation is very simple and straight-forward.
    – Leftium
    Nov 7, 2011 at 5:45
  • Couldn't tell by looking, does this have Javascript library content assist for Ext-JS 4?
    – Dave
    Feb 16, 2012 at 22:30
  • It looks like this plugin hasn't been updated since February, 2011. Sep 24, 2012 at 4:31
  • 2
    Right @JacobMarble, it is not working in juno! sad :-(
    – Vikas
    Nov 22, 2012 at 11:54
  • 2
    There's an update to Eclipse HTML editor for Juno Support as of 12/28/2012
    – dimo414
    Jan 29, 2013 at 23:17
14

Disclaimer, I work at Aptana. I would point out there are some nice features for JS that you might not get so easily elsewhere. One is plugin-level integration of JS libraries that provide CodeAssist, samples, snippets and easy inclusion of the libraries files into your project; we provide the plugins for many of the more commonly used libraries, including YUI, jQuery, Prototype, dojo and EXT JS.

Second, we have a server-side JavaScript engine called Jaxer that not only lets you run any of your JS code on the server but adds file, database and networking functionality so that you don't have to use a scripting language but can write the entire app in JS.

9
  • 1
    Does Aptana have something like JSEclipse' Content Outline feature? The version I used earlier this year did not.
    – TomC
    Sep 30, 2008 at 23:12
  • 26
    Hi, I'm afraid I can't agree with the previous comment. I installed Aptana on this threads recommendation and for various reasons I now want to remove it. I've spent 15 minutes trying to figure out how to remove it from my Eclipse 3.4 config with no success - it seems to disable the uninstall buttons - and the only instructions I found on the Aptana site are for an older version of Eclipse. This is pretty frustrating - I would strongly suggest NOT installing Aptana. Jun 26, 2009 at 12:42
  • 6
    Indeed Aptana does not rock (for me anyway). I installed it to edit JS files but found it to be too slow and unresponsive to be of any real use, espcially editing large files. It also seemed to cause performance issues in my other Eclipse plugins. I uninstalled it by reverting my configuration to a point prior to installation.
    – nick
    Apr 20, 2010 at 14:38
  • 4
    Update: I installed the Beta version of the new Aptana Studio 3 and, just as it promised, the performance issues have been resolved. The new version looks good :)
    – nick
    Oct 11, 2010 at 7:45
  • 3
    Aptana is great if you want the latest features and don't mind tons of bugs. It sucks otherwise. A general recommendation for anyone considering Aptana is: A) Do you need any features from it (eg. Aptana has the only CoffeeScript Eclipse editor around)? If not, stick with Eclipse; B) If you do need features, try installing Aptana SEPARATELY (Aptana will happily hose your whole Eclipse install if you install it as a plug-in), and then decide whether those features are worth the horrible stability (which hey, by the time you're reading this, might not be so horrible). Jan 3, 2012 at 19:54
13

Try the Vjet Javascript IDE from ebay (installation)

1
6

Ganymede's version of WTP includes a revamped Javascript editor that's worth a try. The key version numbers are Eclipse 3.4 and WTP 3.0. See http://live.eclipse.org/node/569

6
  • 1
    -1 million: eclipse's javascript editor is completely worthless. I cant even get it to save files without some kind of bizarre "Compilation unit name must end with .java, or one of the registered Java-like extensions" error. Jun 29, 2011 at 20:30
  • Does the file you're editing have one of the filename extensions listed for the JavaScript Source File content type?
    – nitind
    Jul 7, 2011 at 10:42
  • Yeah, they are .js files and the association is to the JavaScript Editor. Oddly enough I get this error even when opening the files with the normal Text editor. I have since given up on editing JavaScript with Eclipse. Jul 7, 2011 at 17:02
  • That's really strange, Mike. Have you retried it with Indigo (Eclipse 3.7 and WTP 3.3)? If it's still happening, could you file a bug report with more details?
    – nitind
    Jul 15, 2011 at 4:39
  • 8
    Suggestion for Mike Miller, from comment on #3: Eclipse bizzare error, "Compilation unit name must end with .java, or one of the registered Java-like extensions". I struggled over same error on a JSP file in Eclipse - the file wouldn't save because of breakpoints. Remove breakpoints and try save.
    – user878642
    Aug 4, 2011 at 13:25
4

There once existed a plugin called JSEclipse that Adobe has subsequently sucked up and killed by making it available only by purchasing and installing FlexBuilder 3 (please someone prove me wrong). I found it to worked excellent but have since lost it since "upgrading" from Eclipse 3.4 to 3.4.1.

The feature I liked most was Content Outline.

In the Outline window of your Eclipse Screen, JSEclipse lists all classes in the currently opened file. It provides an overview of the class hierarchy and also method and property names. The outline makes heavy use of the code completion engine to find out more about how the code is structured. By clicking on the function entry in the list the cursor will be taken to the function declaration helping you navigate faster in long files with lots of class and method definitions

2
3

The new release of Eclipse (Helios) has an especific package for javascript web development. I haven't tried it yet, but it certainly worth a look.

1

Didn't use eclipse for a while, but there are ATF and Aptana.

0

Oracle Workshop for WebLogic (formally BEA Workshop) has excellent support for JavaScript and for visually editing HTMLs. It support many servers, not only WebLogic, including Tomcat, JBoss, Resin, Jetty, and WebSphere.

It recently became free, check out my post about it. Given that it was an expensive product not long ago, I guess it's worth checking out.

1
  • 1
    It's not clear from your post whether "Oracle Workshop for WebLogic" is an Eclipse plugin?
    – Dónal
    Sep 25, 2008 at 15:12

Not the answer you're looking for? Browse other questions tagged or ask your own question.