Eclipse Javascript Editor 2012 with full Outliner

2019-01-14 16:52发布

问题:

The reason for using an IDE is the comprehensive facilities it provides.

Therefore, I assume there is a Javascript editor for Eclipse that provides basic outliner-based IDE facilities such as:

  • Outliner with Object Literal support (which apparently is rare)
  • Intelligent Code Completion using Outliner data
  • Intelligent Code Highlighting using Outliner data, not just similar words
  • Inter-file scoping (@include "otherfile.js")

However, for Javascript, these features seem scattered across multiple editors:

  • Amateras Javascript Editor
    + Inter-file scoping (uses external files automatically from certain code constructs)
    - No code highlighting
    - No object literal outlining
  • Javascript Editor (Eclipse WDT JSDT)
    + Intelligent code highlighting for reads and writes
    - No inter-file scoping
    - No object literal outlining
  • Javascript Source Editor (Aptana plugin)
    + Object Literal is outlined fully
    - Fake (similar word) code highlighting
    - No inter-file scoping
  • Spket Javascript Editor
    ~ Object Literal is outlined partially
    - Fake (similar word different vars) code highlighting
    - No inter-file scoping
  • VJET Ebay Open Source Javascript Editor
    - I can't get it to work, but it's supposed to be one of the better projects.

Javascript is a very popular language, and more and more frameworks such as ExtJS rely solely on JSON-like Object Notation.

Are there any Javascript editors for Eclipse that provide full Outliner-support? How else do these developers (e.g. for ExtJS) facilitate their Javascript development for modern frameworks?

Although lacking specifics, this is a good and popular question in general that is yet to be answered to satisfaction:

  • Javascript Editor '08
  • Javascript Editor '10

Note that devs depend on an IDE by preference and dependence on other Eclipse plugins such as the Chome Developer Tools and the V8 Debugger. Therefore, the scope of this question is Eclipse plugins only.

回答1:

If you want the best JavaScript editor (not free) then go with PhpStrom from JetBrains

You can use one month trial and this will fulfill all your requirements.

If you want to go with open source then I would recommend you to go with Aptana.

Hope this solve your problem :)