Annoying completion behavior (seems new in IntelliJ 11)

There seems to a new behavior when selecting a completion option that is very annoying in IntelliJ 11. If I use completion in the middle of the line it overwrites what is to the right of the cursor instead of pushing everthing over. Is there a way to get IntelliJ to push things to the right when I select a completion rather than overwriting? (this only occurs when there is no space between the location of the completion and the next word).

For example:

foo(param1, param2)

If I would want to add a param in between param1 and param2 and wanted to use a completion if I put my cursor right before the p in param2 and used a completion, when I selected the completion the method call would now look like:

foo(param1, whateverISelected)

instead of adding whatever I selected at the curor it overwrites param2.

I can't find a setting that jumps out at me to control this. Does anyone have some insight on how to get it to push things to the right when I select a completion?

6 comments
Comment actions Permalink

This is not new behavior by any means. Pressing Tab in the completion list replaces the part of the identifier after the caret. Pressing Enter inserts the completion variant at cursor.

0
Comment actions Permalink

I had reported this annoying feature a few months ago but could not find it
any more because the IDEA issue tracker does not find my issues any more.

Tom

0
Comment actions Permalink

Hitting Enter does indeed do what I want, so thanks for that tidbit. When you say it isn't new behavior how long has it been like this? I have been using IntelliJ since 4.x and I don't recall ever running into this problem before.

0
Comment actions Permalink

This is not "problem", this is standard code completion behavior. It has been like that as long as I remember.

0
Comment actions Permalink

Hi.

> could not find it any more because the IDEA issue tracker does not find my issues any more

Is that you:
http://youtrack.jetbrains.net/issues?q=completion+by%3A+tsinger
?

Regards,
Alexander.

0

Please sign in to leave a comment.