views:

39

answers:

1

I'm working in a java/eclipse shop writing javascript, coming from a php/netbeans background. So far, I hate eclipse, but I don't want to shift away from the general tool set. (Because of issues with our build system, we're currently on the galileo release.)

The syntax coloring is just fine, and I'm learning to live with the cockpit-like interface, but eclipse's outliner doesn't properly recognize things like the module pattern at all. Nor does it do much auto-completion on my methods. Can I do anything about that?

I tried installing Aptana, but so far, I haven't noticed any real improvements in basic editing. I see the WTP, which I may or may not have installed. (How do I find out? :) Would that help?

While I'm asking, eclipse does a lousy job with indentation, which I'm constantly having to fix, since I care about such things. Anything to be done about that?

+1  A: 

Make sure you have installed JavaScript developer tools. See Help / About Eclipse / WTP (one of the icons at the bottom of dialog) / JavaScript Developer Tools feature

Then on your web project Project / Properties / Project Facets page and make sure JavaScript Toolkit facet is selected. After that you should see JavaScript / Code Style / Formatter page as well as other advanced pages, such as, Libraries, Validation, etc.

Eugene Kuleshov
I'm not entirely sure where the "Project Facets" page is, but when I go into Project > Properties, I see both JavaScript and JS Code Formatter, both with about ten thousand options in them....
sprugman
If you have both WTP and Aptana installed you may see more then one JavaScript editor and multiple setting pages. I'd recommend to try with a clean Eclipse installation, e.g. download Eclipse IDE for JavaScript Web developers. http://eclipse.org/downloads/packages/eclipse-ide-javascript-web-developers/heliossr1
Eugene Kuleshov