Is there any way of auto importing (like in Eclipse Shift+Ctrl+O) in Android Studio?
I have found only Ctrl+Alt+O which ask for each thing, and I have to press Alt+Enter to accept it.
No way to do it faster?
android-studioauto-importidekeyboard-shortcuts
Is there any way of auto importing (like in Eclipse Shift+Ctrl+O) in Android Studio?
I have found only Ctrl+Alt+O which ask for each thing, and I have to press Alt+Enter to accept it.
No way to do it faster?
Best Solution
For Windows/Linux, you can go to
File
->Settings
->Editor
->General
->Auto Import
->Java
and make the following changes:change
Insert imports on paste
value toAll
mark
Add unambigious imports on the fly
option as checkedOn a Mac, do the same thing in
Android Studio
->Preferences
After this, all unambiguous imports will be added automatically.