Hmm... What's the shortcut/menu?
Thanks,
Amnon
Gael wrote:
eclipse WTP can comment/uncomment js block too... (like in java editor)
Amnon I. Govrin a écrit :
OK, I checked JavaScript support in the latest early access build of
IntelliJ and it seems to have some things that Eclipse doesn't at the
moment (isn't life interesting...)
- It auto inserts brackets and parenthesis
- It auto completes function parameter names in addition to inner
variables.
- It can comment / uncomment lines or blocks in JS files.
I feel both IntelliJ and Eclipse are beginning to scratch the surface
in JavaScript support, it will be very interesting to see the status
of this in a year or even 6 months...
Amnon
Amnon I. Govrin wrote:
Hi.
Now that I finally got webtools to work (it was my fault, I didn't
realize I needed all those zip files) I played with it a little bit
and here are my impressions:
1. Nice to have the standard objects recognized and have
autocompletion for (e.g. document and its methods).
2. I wish I could define something similar to a classpath so that
Eclipse will know about classes and functions from other files.
3. I wish it had a JavaScript engine that could actually interpret
JavaScript files and state if there is an error in the code. That
would be amazing.
Admittedly, my JavaScript work is more structured than most usages
of JavaScript (function here and there to make a site 'cool'), as I
am using a UI toolkit called Bindows (www.bindows.net) that provides
a fat client like development model for web facing rich
applications, and as such has an extensive class library (similar in
spirit to Delphi, MFC and others) thus the capabilities I am
describing would be invaluable for me.
May be such a feat could be created by manual definition of
libraries of JavaScript files and having them run through an
embedded Internet Explorer or Gecko engine, or making use of code
like httpunit.
JavaScript support in Eclipse is still better than what I currently
have in IntelliJ, but doesn't really make the difference for me as I
don't really use the standard JavaScript objects, as those are
abstracted or meaningless when developing with Bindows.
I know that Bindows people are looking at the opportunity to have an
IDE so the features described above may interest them too, but also
anyone working in JavaScript with respect to the object oriented
powerful language it is rather than some bottom of the food chain
language for DHTML gizmos...).
Amnon