Reputation: 18861
I am not entirely comfortable with way how Eclipse autocompletes code. I like the way how IntelliJ prompts suggestions (some say it's rather aggresive, but I like it that way).
So I went to: Window -> Preferences -> Java -> Editor -> Content Assist and set delay to 0ms and autoactivation trigger to ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.
Now Eclipse looks really fast with autocompletion but there's one very annoying thing: It completes proposed names of variables on every space hit.
So when I want to type:
String joe = "Joe";
eclipse is fast enough to ruin it to:
String joeString = ...;
In other words , pressing: String joe[space]
makesjoeString.
I hope I was clear enoguh, thanks for suggestions :)
Upvotes: 25
Views: 4964
Reputation: 14659
There is a solution on the issue tracker for this. Copy the jar in the eclipse/dropins folder. With the next restart space is diabled as autocompletion trigger.
Upvotes: 0
Reputation: 7923
You can uncheck 'Window -> Preferences -> Java -> Editor -> Content Assist -> Insert single proposals automatically'. Once done, you should only get a popup window with the proposal but it will not be inserted automatically in the editor.
Upvotes: 8
Reputation: 289
Increase the delay so that you can still type short things without stopping. I'm not sure there is another way to solve it as you are asking Eclipse to always instantaneously autocomplete, and space chooses it's current autocomplete guess.
Upvotes: 4