Issue
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:
change
Insert imports on paste
value toAll
mark
Add unambigious imports on the fly
option as checked
On a Mac, do the same thing in Android Studio
-> Preferences
After this, all unambiguous imports will be added automatically.
Answered By - Vladimir Mironov
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.