14 Common configurations for Android studio

Source: Internet
Author: User


14 common configurations for Android studio

1, modify idea.properties file

Locate <android-studio>\bin\idea.properties file, open it, and change it to this:


# automatically check and upgrade Android SDK when running Android studio for the first time
Disable.android.first.run=true
# below two is the directory where Android studio settings, plugins and other files generated by the runtime are stored
# If you don't change it, the default in Windows is c:\users\<username>\. Androidstudio.2\ inside
# ${idea.home.path} represents the home directory of the Android Studio program, note that the directory delimiter must use a forward slash "/"
idea.config.path=${idea.home.path}/. Androidstudio.2/config
idea.system.path=${idea.home.path}/. Androidstudio.2/system

2. Open Project Settings

① Disable Auto-Open last Close Project , disable exit prompt ② Open new project prompt mode


3, code intelligence tips

① knock on everything prompt ②③ prompt time setting

Knock what character will prompt, all (case all match), None (regardless of the case, match on the hint), (first letter) (one character conforms to OK, other casual). My brain is not memory of course choose none. The time setting is based on your computer's performance.


4. Modify the Code font

Highly recommended with Consolas font, good looking!!!


5, Modifying console Fonts


6, Logcat Font

If you want to change, you have to cancel 1 of that place first. , the default Android Logcat color is the same for each level. Recommended Modifications


7, Modifying a variable prefix

The static member is S, the ordinary member is M, when converting to member variables, I automatically add M, and when I generate setter,getter, I ignore M, very good and powerful.


8, Modify new file header

every time you build a new class that would add such a header message


9 is the universal file header, the box is the user name of the system, you want to personalize, you can change here, as to where to refer to the head of the file, just next door.


the modified file is encoded as UTF-8

Do not pit teammates, small friends are unified to UTF-8 bar.


One by one, define your own Live Templates

Template definition for Easy development and reduced duplication of code


,ConfigurationGradleInstallation Path,offline mode,LocalGradleWarehouse


, Optimized - Cancel Synchronization


- Optimized - provides build speed


Finish the above configuration, you can happily use Android Studio, if you have other use of Android studio skills, also please do not mean to share ...


14 Common configurations for Android studio

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.