Some simple settings for Android Studio

Source: Internet
Author: User
Tags version control system

Simple Setup

1. Default Theme Settings

The default Android Studio is the gray interface, and you can choose to use the cool black interface.
Settings---appearance-Theme, select the Darcula theme



2 System font settings

If you have a problem with the Chinese display in the Android studio interface, or if you choose to have a problem with the Chinese catalog, or if you want to modify the font of the menu bar, you can set this.
Settings-appearance, tick Override default fonts by (not recommended) and select a font that supports Chinese. I am using Microsoft Jas Black, the effect is good.

Programming font settings This section modifies the font of the editor, including all the fonts that the file displays.
Settings-Colors & Fonts--and Font. The default system shows the Scheme as Defualt, you cannot edit it, you need to click on the right side of the Save as ... , save a copy of your settings and set them in. You can then set the font in the Editor font.
Show only monospaced fonts indicates that only the equal-width font is displayed, generally speaking, programming and other wide font use more, and the effect is better.

You can also set the color of the font in Settings-to-Editor--Colors & Fonts, and you can choose settings based on the objects you want to set up, and you can also download the font color settings package import from the network.
Code formatting If you want to set the style displayed when your code is formatted, you can set this up.
Settings---Code Style. Similarly, Scheme in the default configuration, you cannot modify, you need to create a copy of their own configuration.

Default file encoding you need to unify your file encoding, whether you're developing it yourself or your team in a project group. For character compatibility issues, we recommend that you use Utf-8. China's Windows computer, the default character encoding is GBK.
Settings---File encodings. It is recommended that you set the IDE Encoding, Project Encoding, Properties fiels to a uniform encoding.

3 Shortcut key Settings

The shortcut keys for Android Studio are not the same as eclipse, but you can use the Eclipse shortcut keys in Android Studio.
Settings--Keymap. You can choose the shortcut keys for the IDE from the Keymaps, and Android Studio has more support for other IDE shortcuts. It is recommended that you do not use keyboard shortcuts for other Ides, but instead use the shortcut keys for Android Studio.

When you want to set a change on a shortcut key configuration, you need to click Copy to create your own shortcut and set it up.
Android Studio Default shortcut key, code hint is ctrl+space, will conflict with system input keyboard shortcut, need special setting.
Main Menu----Code----and Basic, change the shortcut key combination that you want to replace.

4 Edit Area vertical bar settings

The Android studio editing area will have a vertical line in the middle. This line is used to remind programmers that a line of code is best not to exceed it. If you don't want to show this line, you can set this up.
Settings--and Editor-to-appearance, uncheck Show right margin (configured in Code Style options).

5 Show Line numbers

Settings--and Editor-to-appearance, tick Show line numbers.

6 Show Spaces

I'm used to displaying spaces so I can see if the Indentation is tab indent or space indent. It is recommended to use a space indent.
Settings--and Editor-to-appearance, tick Show whitespaces.

7 Remove Stitching Check

I personally feel useless, so disable.
Settings---inspections-spelling, uncheck.

8 Git

If you use Git for versioning, you'll need to set up Git's installation file directory.
Settings--and Version Control--git, select your git installation directory on the right.

9 Plugins

Like Eclipse, Android Studio supports plug-ins. Android Studio comes with some plugins by default, and if you don't use some plugins, you can disable it.
Settings--and Plugins, the list of installed plugins is displayed on the right. Uncheck to disable the plugin.

I personally disabled the plugin:

· CVS integration : CVS version control system, not available.

· Google Cloud Tools for Android Studio : google clouds are not available.

· Google login : google account login,' Google Cloud Tools for Android studio** plugin needs to be used.

· Hg4idea : Mercurial version control system, not available.

It is important to note that if you disable the 2 and 3 options, you will not be able to use the Import sample feature.
You can search for plugins and install them in the Browse repositories page.
Additional Plugins I personally install:

.gitignore support : Git version control system . Gitignore File Management plug-in.

10 Checking for updates

Android Studio supports automatic check for updates. There are times in a week when the official version has not been released. You can set the type of check to control the type of update.
Settings to Updates. Tick check for update in channel, which automatically checks for updates. You can disable automatic check for updates. The list on the right is the update channel.

· Stable Channel: The official version, only the latest official version is available.

· Beta Channel : Test version channels, only the latest beta versions are available.

· Dev Channel : Develop a release channel that will only get the latest development version.

· Canary Channel : Preview the publishing channel and only get the latest preview version.

In the above 4 channels, the Stable channel is the most stable, the problem is relatively small, Canary channel can obtain the latest version, the problem is relatively more.

11 Auto-Import

When you copy a piece of code from somewhere else into Android studio, the default Android studio does not automatically import references to the classes used in this code. You can set this up.
Settings to Editor-to-Auto Import, tick the ADD unambiguous improts on the fly.

12JDK Path

Sometimes many people running Android Studio will remind you that the JDK or Android SDK does not exist and you need to reset it. You need to go to the global Project Structure page to set it up. Go to the Global Project Structure page method as follows:

· Method 1

·
Choose Configure-Project Defaults-Project Structure

· Method 2

·
Select File--and other Settings--- Default Project Structure


13 first boot card time long


This is the check on your Android SDK. Someone will be stuck here for a long time, the big reason is: network connectivity problems. Can be resolved by configuring the hosts. If the check requires an update, you will need to install it.
If you want to skip this step, you can do the following:
In the Android Studio installation directory under the Bin directory, locate the Idea.properties file and append disable.android.first.run=true to the file at the end.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Some simple settings for Android Studio

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.