Search code examples
intellij-ideaandroid-studiocode-completion

Why doesn't code completion work for overridden methods in Android Studio?


Here's a picture of me overridding an on* method in an Activity descendant.

no code completion happening here

Why doesn't IntelliJ/AS try to guess as it does when I'm typing pretty much anything else?

I don't see anything obvious that's de-selected in settings:

enter image description here


Solution

  • This is simply IntelliJ vs. Eclipse way of doing things. For me it works if I type "on" prefix without pressing Cmd+Space:

    enter image description here

    but generally it looks like "IntelliJ" way would be to use Cmd+O and Cmd+I to override or implement methods correspondingly.