You can go to File -> Settings -> Editor -> Auto Import -> Java and make the following changes:
change
Insert imports on pastevalue toAllmark
Add unambigious imports on the flyoption as checked
(Or, on a Mac, do the same thing in Preferences)
After this all unmabigious imports will be added automaticaly.
Read full article from ide - What is the shortcut to Auto import all in Android Studio? - Stack Overflow
No comments:
Post a Comment