Android Studio optimized to enable Shift+ctrl+o import all packages

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.