Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling Eclipse auto-complete but keeping auto-activation

I use Eclipse for Java development. I like the auto-activation feature because I can add all the letters and numbers so I can see class members while I'm typing; making it behave similarly to Visual Studio. If I don't add all of the letters and numbers to the auto-activation list, it will only pop up with class information when I'm typing the first letter after the '.' delimiter, and then it disappears.

The real problem arises when I'm typing in a variable name or something else. As soon as I hit space, the auto-complete types a bunch of crap following what I've typed in attempt to complete it. It's driving me crazy!

Any way to turn this off?

like image 789
oldSkool Avatar asked Oct 28 '11 23:10

oldSkool


People also ask

How do I turn on autofill in eclipse?

Step 1: Open your Eclipse or Spring Tool Suite, then go to the Window > Preferences as shown in the below image. Step 2: In the next screen go to the Java > Editor > Content Assist > Auto activation triggers for Java as shown in the below image.

What is the keystroke for code completion in Eclipse?

Pressing Ctrl + Space opens up the auto-completion dialog in Eclipse. In the Java Perspective it opens automatically after you typed a . (normally with a short delay).


2 Answers

The checkbox you have to check is: "Disable insertion triggers exept 'Enter' "

(under Java -> Editor -> Content assist)

I'm on Eclipse 2018-12 and C_H's answer had no effect on the behavior:

I believe what you'll want is to deactivate "Insert single proposals automatically"

like image 122
ChrisP Avatar answered Oct 14 '22 17:10

ChrisP


EDIT: It seems this answer is now outdated. It may work for old Eclipse versions. For any more recent versions refer to @ChrisP's answer from 2019.

Open menu Window, then Preferences. Follow path Java -> Editor -> Content assist. Now mess around with the settings to find your ideal setup. I believe what you'll want is to deactivate Insert single proposals automatically.

like image 40
G_H Avatar answered Oct 14 '22 15:10

G_H