如何Optimize Imports
整个文件夹或项目的Optimize Imports
?
try the Optimize imports (Option + Ctr + O) option in android studio
go to Preferences --> Keymap -- > and look for "Optimize imports" to find the right shortcut
If Android Studio is still based off of Eclipse, try
Ctrl + Alt + O
Which should be organize / optimize imports.
Ctrl + Alt + F
Runs the auto code formatter.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.