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?

0
6 comments

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
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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

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

0

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
Avatar
Permanently deleted user
0

Please sign in to leave a comment.