Android Studio2.1 Configuration

Source: Internet
Author: User

Everyone in the use of Android Studio always have to write, the following I will give you to explain my personal configuration, I hope to help everyone

Disabled Windows in Ctrl+space shortcut keys for switching input methods

Windows Ctrl+space shortcut keys (toggle Chinese Input method) sometimes conflict with the IDE, so you need to disable, as you can modify the registry.

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

Set Theme , Window Size , animation effects

Modify the theme ② modify the Global window font (the window font must be in Chinese) Font size ③ window animation (I am here to disable the animation effect)

Modify Menu or ToolBar

Here I have added the toolbar to create class,fragment,activity, which is modified according to the personal situation

And then

Open Project Settings: Configure by diagram

① with auto-Open last Close project, disable exit prompt

② How to open new project tips

Disable automatic check for updates: Configure by diagram

Show line numbers, Show method divider lines
① Display Line numbers

② Display method Separators

Code Folding

① Canceling method Auto-folding

Code Intelligence Tips

① knock anything hint: knock what character will prompt, all (case all match), None (regardless of the case, in accordance with the hint), (first letter) (one character matches on OK, other casual)

② prompt Time setting: Time setting according to your own computer performance.

Automatic Guide Package

Optimize imports on the fly: Optimization of the Guide package, the format code will delete the excess guide. Add unambiguous imports on the fly: Tapping the simple class name on the code will help you guide the package.

modifying code Fonts

modifying console Fonts

Modify the comment location

Disable "Statement heap line"

Comment at Frist column: If enabled, the annotation symbol will be at the beginning of the line, otherwise it will be indented in the comments. Control statement in one line: When formatting the code, it merges a few short statements into one row. This affects code readability.

Modifying a variable prefix

Static member is S, ordinary member is M, convert to member variable when automatically add m, when generate Setter,getter will ignore M, very good very strong.

Cancel Android Lint Check

Must speed up

Modify new file Header

Each time a new class is built, this header information is added

Modify the file encoding to UTF-8

The small partners are unified change to UTF-8 bar.

Add a management plug-in

SVN Add Remove Item

Configuration Gradle Installation Path , offline mode , Local Gradle Warehouse

Optimized - Cancel Synchronization

Optimized - provides build speed

Android Studio2.1 Configuration

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.