When developing Android apps using Eclipse, developers often use the Shift+ctrl+o shortcut to quickly import all packages and remove packages that have been imported but not yet used. But this shortcut key in Android Studio no one is to have open, and below to share with you in Android Studio using the Shift+ctrl+o shortcut key solution:
Open: Auto Import, Editor, File, Settings
Change "Insert imports on paste" to "all" and then tick "ADD unambigious imports on the Fly" check box.
Baidu to this problem, but no one solved, met, solved, write down the answer, convenient posterity:
In a piece of code, the cursor is on the red word, press Alt+enter, the import prompt appears, three:
Select right and press ENTER to exclude a hint:
Then there is an exclusion list in the settings:
Back to the code block, Alt+enter, only 2 hints, if the total exclusion will not prompt, only the creat hint:
Android Studio optimized to enable Shift+ctrl+o import all packages