简体   繁体   中英

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?

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"

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 .

If anyone wants to know how to stop the auto-complete for brackets :

Toggle off: "Edit --> Smart Insert Mode" 在此处输入图片说明

Version: Eclipse Photon

In continuation to @G_H's answer : This worked for me although I am sure there is another and a better way.

Window -> Preferences -> Java -> Editor -> Content Assist -> Set Auto Activation Delay(ms) : 200ms from 0ms in my case. You may want to increase/decrease the value 200 depending on your typing speed.

The reason this worked is because of the hitting of "Spacebar" before the delay arrives.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM