Configuration when using Android studio for the first time

Source: Internet
Author: User

First, Installation:

After the Android Studio is installed, start as before the first time. To avoid downloading the SDK again for the new version number. Actions such as the following:

As before starting. Please add a line to the Bin folder's Idea.properties file first:disable.android.first.run=true , avoid downloading the SDK for the first time when you open as. Right-click on Mac platform->show package Contents find the Bin folder

The first time you open Android Studio. You need to configure the JDK and SDK:

Note: Don't ask me how the JDK and Android SDK came from? To install the first self-oh, such a post search a lot of, not my writing style.

Second, create a new Android Studioproject:

After configuring the JDK and Android SDK. will be able to start a new Android project:

, after you have set the project name and path, you can follow it all the way next:

The user assumes that Android Studio is installed for the first time and will appear for example the following form:

, is in the download gradle, about 50 trillion bar, because the visit is a foreign site. Suggested Fq.

Third, the simple settings of Android Studio:

1. Theme Changes:

Maybe people will think the software interface is not very good, we can change the theme. Select the menu bar "File--settings--apperance--theme". Theme Selection Darcula:

2. Import third-party topics:

The two themes offered by the system may not be very good looking, we can go to the site http://www.ideacolorthemes.org/home/to get third-party topics, such as sublime theme is my personal favorite:

In After downloading it, it is a jar package.

How do I import it into Android studio?

Don't worry, go back to Android Studio and choose the menu bar "File-import Settings" to import the downloaded jar package.

3, code font changes:

Select the menu bar "File--settings--editor--colors&fonts--font":

The same can also change the console font:

After the changes have been found some of the default font of AS, such as the sidebar of the project folder font has not changed, false idea change, then change it (I usually do not change), change the default font as:

4. Close the update:

For example, as seen in:

5, the shortcut key habits change:

Suppose you want to change into Eclipse's shortcut key habits. Ability to select Menu bar "File--settings--keymap":

I'm not going to change it here, huh?

6. Add API document hover hint:

As the default is no API document hover hint, just hold down "ctrl+q" too will appear prompt.

Suppose you want to join the API's own active hover hint, set up for example the following:

In In the red box part of the hook can be, just do this to the computer's performance consumption will be added, can not be set. According to personal habits.

7, the configuration code of their own initiative prompt:

Android Studio defaults to the code itself, which is set at the following location:

The shortcut keys for code hints are in the following location:

, enter "class name completion" In the search box, see the code hint of the default shortcut is ctrl+alt+ space, if you want to get rid of this shortcut, operations such as the following:

, right-click to select the Red box section. Make changes in the dialog box that pops up.

Note: Suppose you are accustomed to using eclipse. Note, however, that "alt+/" in Android Studio is another shortcut key:

People who are accustomed to using eclipse can swap the two keys of the Red box section.

Configure code hints for uppercase and lowercase distinctions:

As the default code hints are uppercase and lowercase sensitive , do not believe to look.

We enter the lowercase intent, which suggests effects such as the following:

When you enter an uppercase intent. Hint effects such as the following: (This time only appeared the intent class)

The above two graphs can be seen, as the default code hints are uppercase and lowercase sensitive . Then I want to make as insensitive to uppercase and lowercase. How do we do that? Actions such as the following:

, we'll change the part of the arrow to "none".

Effects such as the following:

Hold down the CTRL key at the same time click the mouse to view the source code:

Assuming that the SDK has been successfully loaded, this is actually set in the shortcut key:

The shortcut keys in the Blue bar section of the box mean that you can view the source code by holding down the CTRL key at the same time by clicking the mouse.

8, set their own active guide package:

Before in Eclipse. We only have to refer to some classes each time we need to guide the package. And as can be set to their own active guide package. Settings such as the following:

, select the two arrow positions.

9. Display the number of lines of code:

, the red box part will be ticked.

10. Prohibit yourself from actively opening the last project:

I like to choose which project to open, decisively disable, set up for example the following:

11. Prohibit code Folding:

Intellij idea by default, there are very many places where the code will be folded on its own initiative. I just can't stand it, so I canceled it. Settings such as the following:

12, change the gaze position. To disable the statement heap line:

    • Comment at Frist column: If enabled, the gaze symbol will be at the beginning of the line, otherwise it will be indented in the gaze. I canceled it.
    • Control statement in one line: when formatting code. Will combine a few very short statements into one line. I think this affects code readability. So cancel.

13. Change the new file header:

Every time a new class is built. Are you sure you're familiar with the following gaze?

/** * Created by smyhvae on 2015/5/7. */

In fact, it is set at the following location:

14. Change the file code to UTF-8:

Android Studio 1.1 default encoding method is Utf-8, to the Android Studio 1.2 by default encoding method Incredibly is GBK, we still change UTF-8 bar, do not pit teammates OH:

Configuration when using Android studio for the first time

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.