If you have just moved from ADT Eclipse to IntelliJ IDEA Android Studio the first thing you would notice that the keymap i.e. Keyboard shortcuts are very different then that of IDE's based on Eclipse.
If you want to add missing import statements then in Eclipse we use,
ADT Eclipse- Windows : Ctrl + Shift + O
- Mac OS X : Command + Shift + O
- Windows : Ctrl + Alt + O
- Mac OS X : Command + Alt + O
- Go to Android Studio -> Preferences
- Select Editor -> Auto Import
- Under Java, Check Optimize imports on the fly and Add unambiguous imports on a fly
- Apply the changes.
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!