android-studioidekeyboard-shortcutsauto-import

What is the shortcut to Auto import all in Android Studio?


Is there any way of auto importing in Android Studio. Something like the auto-import feature that Eclipse has when you use the keybinding: SHIFT + CTRL + O in Android Studio?

Currently I have only found CTRL + ALT + O, which ask each individual thing, and I keep having to use the keybinding ALT + ENTER to accept.

Is there any way I can speed things up?

Solution

  • For Windows/Linux, you can go to File -> Settings -> Editor -> General -> Auto Import -> Java and make the following changes:

    On a Mac, do the same thing in Android Studio -> Preferences

    enter image description here

    After this, all unambiguous imports will be added automatically.