autocomplete has stopped working with android sdk

For some reason auto complete no longer works. for example when writing code using the android bitmap class, when i use the dot operator eclipse would suggest methods for that object instance. how do you turn this feature back on?

thanks mat.

37842 次浏览

I had this same problem. Here is how I solved it.

In Eclipse go to

Window -> Preferences -> Java -> Editor -> Content Assist -> Advanced

And check the boxes labeled "Java Proposals" and hit Apply.

This solved my problem. Hope it helps.

Im my case was API tools proposals the option that cause my autocomplete doesn´t work, here are the 4 default options that must be checked...

  • API Tools Proposals.

  • Java Proposals.

  • SWT Template Proposals.

  • Template Proposals.

    default configuration

the next time i must be careful when click Ctrl+Space =D

Here's another solution I dicovered:

I would check the other solutions listed here first and if all else fails shut down eclipse then delete the file 'org.eclipse.jdt.ui.prefs' found in the workspace directory (Workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings).

Seems in my case the workspace became corrupted somehow and this fixed it. Haven't yet noticed any adverse effects by doing this.

I had the same problem and none of the solutions here worked. For some reason, my Scheme had changed from "default" to "Emacs". So to fix it, I had to go:

Preferences> General> Keys and change the scheme back to default.

Go to Preferences > Java > Editor > Content Assist and paste "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz." (note the dot after z) into the "Auto activation triggers for Java:" field. This worked for me ! Now as i type I get autocomplete options

eclipse use "ctrl+[space]" to show the "css/html/java proposal"