Title: SV: [Eap-features] smart postfix name completion

Try using [tab] when selecting from the pop-up. This overwrites the rest of the current symbol thus doing a replace.
And don't forget that you may also use other keys like [.] [;] or [space] for selection, and this key is directly appended to the chosen keyword. Usefull for e.g [.] after class variable og [ for array indexing.

Regards Jan Krag

> -----Oprindelig meddelelse-----
> Fra: Sampsa Lehtonen [mailto:[EMAIL PROTECTED]]
> Sendt: 5. april 2002 16:20
> Til: [EMAIL PROTECTED]
> Emne: [Eap-features] smart postfix name completion
>
>
> I have many times had a situation where it would have been
> nice to have
> postfix name completion (as I call it). Consider this (@
> denotes the cursor
> position):
>
> I have a methods called "createNormalObjectCached" and
> "createBetterObjectCached". I have typed code that uses one
> of them, such
> as:
>
> x = createNormalObjectCached(...);
>
> Now, I decide to change the method to
> createBetterObjectCached. Normally I
> would have to first erase the ending of previous method to
> make it this:
>
> x = create@(...);
>
> and then hit the ctrl+space to get the autocompletion list
> which would give
> me ALL symbols that start with word "create". With postfix
> completion I
> would just need to remove the word "Normal" (I might have
> cursor at the word
> "Normal" or near):
>
> x = create@ObjectCached(...);
>
> and then hit the ctrl+space which would give a list of
> symbols that begin
> with "create" and end with "ObjectCached".
>
> More over, consider methods "freeObject" and "removeObject".
> To change the
> method to another, I need to remove whole the word and then
> type the start
> of the new method and hit ctrl+space. With postfix
> completion, I just would
> have to remove either word "free" or "remove" and then hit
> ctrl+space to get
> list of symbols ending with word "Object".
>
> If postfix completion is too hard to implement or you think it isn't
> necessary, at least do a completion that consumes the
> matching letters in
> text DIRECTRLY after the cursor position and rest of the
> symbol name (no
> whitespace allowed). Example:
>
> - free@Object (hit 4 times backspace to remove word "free")
> - @Object (hit ctrl+space and choose "removeObject" from
> list, press enter).
> - removeObject@ (matching letters in word "Object" are consumed).
>
> Currently the result is "removeObject@Object".
>
> Small thing but would release me from doing extra manual work
> that the IDE
> could do for me.
>
> - Sampsa
>
>
>
> _______________________________________________
> Eap-features mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-features
>

Reply via email to