Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: Instant autocompletion

Tags:

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 :)

like image 923
Xorty Avatar asked Oct 13 '11 20:10

Xorty


People also ask

How do I trigger an autocomplete in Eclipse?

By default Eclipse triggers the autocompletion after a certain delay when you insert a dot. This is sensible because the dot signals the IDE for example that you got an instance of a class and want to call a method on it. You can bring up the autocompletion by manually pressing Cmd plus Space whenever you want.

How do I turn on autocorrect in Eclipse?

In the Window > Preferences menu, you can search for spell checking (located in General > Editors > Text Editors > Spelling) and there you can edit your spell checking options. Thank you for the suggestion. I tried unchecking the 'Enable Spell Checking' option (,restarted Eclipse) and the problem persists.

How do I turn off autocomplete in Eclipse?

Window -> Preferences -> Java -> Editor -> Content Assist -> Set Auto Activation Delay(ms) : 200ms from 0ms in my case.


1 Answers

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.

like image 80
Deepak Azad Avatar answered Oct 04 '22 18:10

Deepak Azad