Android Studio Simple Setup

Source: Internet
Author: User
Tags version control system

Android Studio Simple Setup


Interface 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.




Font settings 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- appearanceCheck Override Default fonts by (not recommended), select a font that supports Chinese. I'm using it. Microsoft Ya-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- Editor- Colors & Fonts- Font。 The default system displays SchemeFor Defualt, you are not editable, you need to click on the right side of the Save as ..., save a copy of your settings and set them in. After that, in Editor FontTo set the font.
Show only monospaced fontsIndicates that only the equal-width font is displayed, generally, programming and other wide fonts are used more, and the effect is better.


Settings- Editor- Colors & FontsYou can also set the color of the font, you can select settings based on the object you want to set, 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。 The same, SchemeIn the default configuration, you cannot modify, you need to create a copy of your 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-compatible issues, it is recommended that you use Utf-8。 China's WindowsComputer, the default character encoding is GBK
Settings- File Encodings。 Recommended to IDE EncodingProject EncodingProperties fielsare set to a uniform encoding.


Shortcut keys for Android Studio are not the same as Eclipse's, but you can use Eclipse's shortcut keys in Android Studio.
Settings- Keymap。 You can get from keymapsSelect the keyboard shortcut for the IDE, and Android Studio has more support for the other IDE's shortcut keys. 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 CopyCreate your own shortcut key and set it up on top.
Android Studio Default shortcut keys, code hints for Ctrl+space, it conflicts with the system input keyboard shortcut and requires special settings.
Main Menu- Code- Completion- Basic, change the shortcut key combination that you want to replace.


Other Settings The 1Android 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- Editor- appearance, uncheck Show right margin (configured in Code Style options)


2 Show Line numbers

Settings- Editor- appearanceCheck Show Line Numbers


3 Displays spaces. I'm used to displaying spaces so I can see that indentation is TabIndents or spaces are indented. It is recommended to use a space indent.
Settings- Editor- appearanceCheck Show whitespaces


4 Remove stitching check. I personally feel useless, so disable.
Settings- Inspections- Spelling, uncheck the box.


5 If you use GitFor version control, you need to set GitDirectory of installation files.
Settings- Version Control- Git, in the right, select your GitThe installation directory.

6 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- 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 the 2 and 3 options are disabled, the ability to import the official sample is not available ( Import Sample)。

You can be in Browse repositoriespage, search for the plugin and install it.
Additional Plugins I personally install:
    • . Gitignore Support: Git Version control system . Gitignore File Management plug-in.

7 Check 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- Updates。 Check Check for updates in channel, the automatic check update is enabled. 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.

of the above 4 channels, Stable ChannelThe most stable, the problem is relatively small, Canary ChannelTo get the latest version, the problem is relatively large.

8 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- Editor- Auto ImportCheck Add unambiguous improts on the fly


9 sometimes many people running Android Studio will remind you JDKOr Android SDKDoes not exist, you need to reset it. You need to get to the big picture. Project StructureSettings under the page. Into the global Project StructureThe page method is as follows:
    • Method 1

      Choose Configure - project Defaults - Project Structure
    • Method 2

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



Under this page, set the JDKOr Android SDKDirectory.

10

This is a check on your Android SDK。 Someone will be stuck here for a long time, the big reason is: network connectivity problems. can be configured by hostsThe way to solve. 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 binDirectory, locate idea.propertiesFile, appended at the end of the file disable.android.first.run=true

Android Studio Simple Setup

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.