How Android Studio sets up auto import price packs

Source: Internet
Author: User


For people who are accustomed to developing Android with Eclipse, the most common operation when importing jars is ctrl+shift+o, but when using Android studio, the default

The operation is alr+enter, but can only import one at a time, so we have to set it ourselves, and then the software will be automatically imported

Click File->setting to find the editor's General Auto Import, and then tick:


Show Import Popup when the declaration of the class you entered is not imported, a selection dialog box pops up.


Optimize imports on fly: This is actually the same as the shortcut key Ctrl+shift+o/ctrl+alt+o, which is to remove the unused declarations.


Add unambiguous imports on the fly: This is the automatic import function, when you enter the class name, the declaration is automatically imported.



How Android Studio sets up auto import price packs

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.