Coming from Visual Studio and starting a project in Java, I realized I couldn’t cope with having to press ctrl+space to have the autocomplete panel show up. An easy workaround was to set all keyboard characters to be trigger characters for autocompletion.
My only problem is that, when presented with autocomplete suggestions, a single press on the space bar will write the first proposition. In situations where I’m happy with the suggestions, that’s just fine. In situations where I actually want to use what I wrote down initially, I have to press ‘escape’ first to remove the autocomplete panel before I can press ‘space’ safely.
Netbeans doesn’t use the space bar as a validating key for autocompletion (only ‘enter’ does that) and I like that behavior. Any way to replicate it in Eclipse?
Thanks in advance for your answers!
EDIT: I should have mentioned I’m using Eclipse on the Mac.
Guillaume
I just tried to reproduce your behavior, but couldn’t. Here is the configuration I have (and the steps I have done to reproduce):
Window > Preferences > Java > Editor > Content Assist, I have the following settings:I have a simple class, go down to a method, and do the following steps:
this.noand wait some time. Sometimes I have to pressCTRL + SPACE, sometimes not.notifyandnotifyAll.SPACEand a space is inserted in the text, the autocomplete suggestions are closed without inserting anything.I do not know if older versions of eclipse have the same behavior.