14 common configurations of Android Studio

Source: Internet
Author: User

14 common configurations of Android Studio
14 common configurations of Android Studio

1. ModifyIdea. propertiesFile

Find the \ bin \ idea. properties file, open it, and change it to the following:

# Disable automatic check and upgrade of AndroidSDK when you run AndroidStudio for the first time
Disable. android. first. run = true
# The following two directories store other files generated by the settings, plug-ins, and runtime of AndroidStudio
# If this parameter is not changed, C: \ Users \ is used by default in Windows \ \. AndroidStudio.2 \
# $ {Idea. home. path} indicates the main directory of the AndroidStudio program. Note that the directory separator must use the 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 automatic opening of the previous closed project, disable exit prompt ② enable new project prompt Method

3, Code prompt

① When everything is typed, prompt ② prompt time setting

When you press on a character, the system will prompt All characters (All uppercase and lowercase are true), None (case-insensitive), and Firstletter (the first character is OK and others are random ). Of course, None is my option. Time Setting depends on the performance of your computer.

4. modify the code font.

We strongly recommend that you use the Consolas font !!!

5. Modify the console font


 

6,LogcatFont

If you want to change the color of android Logcat, you must first cancel the check at the location 1. By default, the color of android Logcat is the same for each level.

7,Modify the prefix and suffix of a Variable

The static member is s, and the common member is m. m is automatically added when the member variable is converted to the setter. m is very powerful because m is ignored during getter.

8,Modify the New File Header

This header is added each time a new class is created.

9 is the general file header, which is the user name of your system. If you want to personalize the file, you can change it here. As for where to reference this file header, It is next door.


10. Modify the file encodingUTF-8

Don't pit teammates, friends are unified to change to UTF-8.

11. Customize Live Templates

Template definition to facilitate development and reduce repeated code

12. Configure the Gradle installation path, offline mode, and local Gradle repository.

13,Optimization-Cancel synchronization

14 Optimization-providing building speed

After completing the above configuration, you can use android studio happily. If you have other android studio usage skills, do not share them with others...

Related Article

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.