Code completion in JavaScript files

So far the code completion in JavaScript files is very limited - I only happen to complete the variable names which isn't that much, honestly ...

How about:
1) Completing user's method name + showing it's arguments (with Ctrl+P)
2) Completing W3C DOM method names + showing their arguments

There are still a hell lot of differences between Java-editor and JavaScript-editor expriences and I hoped IDEA 5 will solve most of them. It appears to be just starting ..

48 comments
Comment actions Permalink

One more not-so-complex thing that could greately help to JS developers is completing the comments, similarly to how it's done in Java

For example, when I write:

]]>


and press Enter - the following will happen:

]]>


0
Comment actions Permalink

This is not a joke. This is not somebody else calling you an idiot. This is you categorically demonstrating that you have been, in this situation, an Idiot. But Idiot could mean many different things to many different people. From what I see from your demonstration, my definition is as follows: you are an Idiot because you were Bad, meaning crude, thoughtless, rash, insulting, irrational, immature, and because you were Stupid, meaning blatantly wrong, foolish, thoughtless (of yourself and others), and having zero credibility.

And yes, despite your given reasons for using a fake name and saying you are from Planet Earth (that is not clever by the way, so it won't help you in the Stupid column), you still are behaving like a Coward. I don't think Coward needs any further definition, it means pretty much the same thing to all people.

P.S. The fact that I took the time to provide this feedback should show you how much you've angered myself and I'm guessing most of the veterans on this list. Hope you take it to heart and choose a new name.

0
Comment actions Permalink

I mean, the same way it behaves in Java sources when one types /** and presses Enter

0
Comment actions Permalink

"Introduce Variable" (CtrlAltV) would also be nice .. I hope you get the idea, ????? :)

0
Comment actions Permalink

You want intelligent? Try this:

If you had any guts and self dignity, you would be honest with your team
and tell them you made a mistake, and not hide behind some fake name so
they don't find out. Who are you hiding from your mom and dad? Are you
that insecure with your job that you can't step up to the plate and
admit that you were wrong in your recommendation? Was someone in the
office challenging you and telling you Eclipse was better for your team,
and you went head to head taking idea as the holly grail, and now you're
scared to look like a fool?

Get some back bone dude!

Don't waste our time on this thread anymore. There are a couple of
people discussing genuine solutions. If you have a solution to offer
that is intelligent, well thought out, and based on facts, please let us
hear it. Otherwise, get back to your little .com and help it fail or
something.

R

0
Comment actions Permalink

So iceman is the designated moron...

Yup, I'm having the time of my life here, annoying everybody... (b.t.w you should change your nick, iceman...)

See Michael, I know what you're thinking...
You think that you're very smart...
A great Software Architect (yeah right)...
I bet you thought that after reading your speech I'll break down, cry and apologize...

WRONG!
(it's funny you know, there's always the next idiot to reply)

Tell me, Software Architect, how come you agree with IDEA's current level of JavaScript support? Maybe because you think its good enough?? maybe because you think IntelliJ is magic?? maybe it's because the only thing you're architecting is your tongue inside your boss' ass... is that how you got promoted?? (I'm sure the reason wasn't professional).

Take my advise Hoefer, go back to "Architecting" (I bet you use Visio) and leave us all alone... Just become the next best thing after a veteran (I really liked that one... hilarious) - retired...

0
Comment actions Permalink

Nicely Spoken Robert ass Sfeir...
But wait a minute... did you miss "hypothetically"? it changes the picture a bit, isn't it?!

You know what? Lets make it interesting?
Let's help JetBrains with this one...
JetBrains will define requirements and schedule for this JavaScript issue.
You and your "veteran" girlfriends will provide your solution.
I'll implement mine. (a open-source kind of development)
We'll let JetBrains choose...

Are you in?
(come on... you're on the safe side... you got the Software Architect iceman...)

Waiting...

0
Comment actions Permalink

It wouldn't be so horrible to have some type comments in the code (entered by the programmer, not auto-generated by IDEA) to give some hints for autocompletion.

0
Comment actions Permalink

I hope you get the idea, ????? :)


Sure we do :)

What we have now is version 1.0. No way it gonna stop there.

BTW, check out js completion once again in 3430.

-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

he he dear anonymous,

I bet you would keep your mouth shut under your real name.
It's always surprised me how much more shit you see in people when they wear
those fancy anonymous labels.
So come out or shut the f up!

--
Dmitry Skavish.


0
Comment actions Permalink

JetBrains will define requirements and schedule for this JavaScript issue.
You and your "veteran" girlfriends will provide your solution.
I'll implement mine. (a open-source kind of development)
We'll let JetBrains choose...


Go ahead

0
Comment actions Permalink

And so it begins...

We now need IntelliJ crew to post the requirements and schedule... OR, we can write our own plugins...
Tell me what you think...

0
Comment actions Permalink

Ok, it's a date then !

0
Comment actions Permalink

Why's that ?

I see JavaScript functions provided with Javadocs which
1) Document the functions, the way Javadoc usually does
2) Give hints to flow analysis engine

Like this one:


Those who don't write comments - well, it's their own problem.

0
Comment actions Permalink

Btw, in your example


there's no need to specify name's type - it should be obvious from analyzing the context.

The points that have to be Javadoc-ed are "entry points": types of function arguments and return values. Most of local variables - their types can be discovered by the flow/context analysis (var j = 0/true/"String" should be obvious cases for it).

All those .. Well, you know it's a Node at least, which is already enough to give quite a lot of completions.
But still, it can be written as

0
Comment actions Permalink

Evgeny Goldin wrote:

The points that have to be Javadoc-ed are "entry points": types of
function arguments and return values. Most of local variables - their
types can be discovered by the flow/context analysis (var j =
0/true/"String" should be obvious cases for it).


I think as JS code gets more advanced, more calls will be external
library calls, which may not be annotated in this way.

0
Comment actions Permalink

Sure. But if I'll be able to annotate all my functions and IDEA will be able to autocomplete their names, arguments, highlight the errors and refactor (all those things we enjoy while developing in Java) - it's already a win-win situation. No JS-completion solution will probably be 100% correct 100% of the time, but getting to 50% will be more than enough for now.

0
Comment actions Permalink

Having second thoughts, Robert (as)S Sfeir?

0

Please sign in to leave a comment.