You can go to File
-> Settings
-> Editor
-> 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
(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