Good idea marked "Do not fix" last year?

I've always meant to file an RFE for CtrlSpace completing names of overridable or implementable methods, like (| is the cursor):

Pressing CtrlSpace there would complete to "someLongName(".

I finally saw that this was reported a year and a half ago, and marked Do Not Fix, because you can use CtrlO and CtrlI. I think this would be useful for the few times I end up typing part of the method declaration myself.

Anyway I was wondering what other people thought of this. I think it just makes sense that IDEA would complete this, and I don't think it would be too hard to implement. Maybe if enough people like the idea, they will reopen the bug.

(The request is at http://intellij.net/tracker/idea/viewSCR?publicId=7856 )

7 comments
Comment actions Permalink

Dont' get me started. Where is the CTRL-SPACE and CTRL-ALT-SPACE. Why
not have one completion keystroke for everything. For that matter, why
even force me to hit a keystroke? If I type class. the . automatically
brings up the possible completions. After the first character, start
checking for all possible completions. Maybe put a 1-second delay on it
for slow PCs. : )

In this case, if you start typing a method, it could determine that here
is a possible match and give a possible completion.

Keith Lea wrote:

>I've always meant to file an RFE for CtrlSpace completing names of overridable or implementable methods, like (| is the cursor):

class B { void some|]]>
Pressing CtrlSpace there would complete to "someLongName(".
>
>I finally saw that this was reported a year and a half ago, and marked Do Not Fix, because you can use CtrlO and CtrlI. I think this would be useful for the few times I end up typing part of the method declaration myself.
>
>Anyway I was wondering what other people thought of this. I think it just makes sense that IDEA would complete this, and I don't think it would be too hard to implement. Maybe if enough people like the idea, they will reopen the bug.
>
>(The request is at http://intellij.net/tracker/idea/viewSCR?publicId=7856 )

>

0
Comment actions Permalink

I think the reason for multiple completion keystrokes is that they wanted to keep the completion options list reasonable. ctrl-alt-space can bring up a slew of completions, and especially when completing a class name, there are some times I definitely want to complete with a class I've already included in the imports. I don't want to see a complete class list every time.

0
Comment actions Permalink

+> Dont' get me started. Where is the CTRL-SPACE and CTRL-ALT-SPACE.

Why not have one completion keystroke for everything.+


At first, I was a bit thrown by the ctrl-space, ctrl-alt-space & ctrl-shift-space options and didn't like having the three, especially having come from other IDE’s in which ctrl-space gave you the world. But once I got use to them, I saw where they make a lot of sense and now actually love the separation. An option so that ctrl-space pulls up everything might be a nice add-on.



+> For that matter, why even force me to hit a keystroke? If I

type class. the . automatically brings up the possible completions.
After the first character, start checking for all possible completions.
Maybe put a 1-second delay on it for slow PCs. : )

In this case, if you start typing a method, it could
determine that here is a possible match and give a possible
completion.+


This feature does exist. In IDE Settings, go to the "Code Completion" dialog. In that window there is a section labeled "Autopopup". One of the checkboxes is "After dot" with an option to enter the number of milliseconds to wait. Select that option and set the time delay and the auto complete window will pop up after you type a dot following a class/variable name. Also turn on “Autopopup javadoc in (ms)” (over on the right side of the window) and life is good :) – just type a dot and the world is at your finger tips.

0
Comment actions Permalink

I was suggesting having a longer delay for the completions that you
don't use as much. Such as the classes that have not been imported.
This would help keep the auto completion list size down in a majority of
the cases.

Mark Vedder wrote:

>+> Dont' get me started. Where is the CTRL-SPACE and CTRL-ALT-SPACE.

>
>>Why not have one completion keystroke for everything.+
>>
>>
>
>At first, I was a bit thrown by the ctrl-space, ctrl-alt-space & ctrl-shift-space options and didn't like having the three, especially having come from other IDE?s in which ctrl-space gave you the world. But once I got use to them, I saw where they make a lot of sense and now actually love the separation. An option so that ctrl-space pulls up everything might be a nice add-on.
>
>
>
>+> For that matter, why even force me to hit a keystroke? If I

>
>>type class. the . automatically brings up the possible completions.
>>After the first character, start checking for all possible completions.
>>Maybe put a 1-second delay on it for slow PCs. : )
>>
>>In this case, if you start typing a method, it could
>>determine that here is a possible match and give a possible
>>completion.+
>>
>>
>
>This feature does exist. In IDE Settings, go to the "Code Completion" dialog. In that window there is a section labeled "Autopopup". One of the checkboxes is "After dot" with an option to enter the number of milliseconds to wait. Select that option and set the time delay and the auto complete window will pop up after you type a dot following a class/variable name. Also turn on ?Autopopup javadoc in (ms)? (over on the right side of the window) and life is good :) ? just type a dot and the world is at your finger tips.

>

0
Comment actions Permalink

Yeah, that's true. I really think this is a killer feature.
Look at Eclipse. There is only one completion for used classes and variables, for not yet unused classes and for templates. It's totally useless. I keep typing in the class names without using the completion in Eclipse because by the time I have scrolled to the class I need I have typed it in trice.
Using IDEA is always like coming home after a long exhausting trip into Eclipse-land.

0
Comment actions Permalink

In article <30856082.1089911426398.JavaMail.itn@is.intellij.net>,
"Robert F. Beeger" <no_mail@jetbrains.com> wrote:

Yeah, that's true. I really think this is a killer feature.
Look at Eclipse. There is only one completion for used classes and variables,
for not yet unused classes and for templates. It's totally useless.


Heh - I find the Eclipse one more functional than IDEA, as there is only
one keystroke to train my fingers for.

Scott

0
Comment actions Permalink

It's funny to see people saying all completions are the same. Personally I consider CtrlSpace, CtrlAltSpace, and CtrlShift+Space to be for drastically different usages. I don't consider one as an extension or replacement for another, they are just different functions.

0

Please sign in to leave a comment.