Android-studio – Remove unused imports in Android Studio

android-studio

I recently started Android Studio IDE to make my android apps. I find shortkey to remove unused import in Android Studio is not working (Ctrl+Shift+O)

What is shortcut key to do same in Android Studio?

Best Answer

Simple, right click on your project in Android Studio, then click on the Optimize Imports that should work.

screenshot

Update

To do same thing which I described above, you can do same just pressing Ctrl+Alt+O, it will optimize imports of your current file and your entire project depends on your selection in a dialog.

enter image description here