[Android Studio authoritative tutorial] configure Android Studio and androidnb OF NB

Source: Internet
Author: User

[Android Studio authoritative tutorial] configure Android Studio and androidnb OF NB

In the previous blogs, We have installed As and created our first HelloWrod. In this blog, we continue to configure an NB Android Studio

If you are the first to get started with AS or want to transform from Eclipse to AS, please stay tuned to the column on my left [Android Studio authoritative tutorial]. Okay, start our tutorial.

1. Configure the IDE topic

The default theme is a gray-white one, which is particularly difficult to see. In addition, for our program developers, they have to face the computer for several hours every day, which is particularly eye-catching, let's configure a dark theme.

Click the small icon in this setting.

Here Theme is Default by Default. We select Darcula here.

Click [Apply] and our topic changes.

2. Configure the code topic

Here we can modify the themes of various codes like Eclipse, such as [font size, font color (Recommended default), font spacing, etc.]

The default two themes cannot be modified. We need to customize a topic and then modify it as follows:
In this step, select [Darcula] And then in [Save As]

2. Set the font size and spacing.

3. Set the console font size and spacing

4. Set automatic import package

Sometimes we need to manually import the package, which is very troublesome. We can set it to fully implement automatic import of the package, which is also the highlight of.

5. Set the number of lines automatically displayed by code

3. Set the Logcat color

By default, only errors and Assert in AS logcat are red and there is no difference, which affects the visual effect.

First look at the effect after I set it

Start setting:
1. Choose Editor> Colors & Fonts> Android Logcat or enter Logcat in the search box above.
2. Click Verbose, Info, Debug, and other options. Then, remove the Use Inberited attributes check box.
3. Select the check box before Foreground, and double-click the box next to it to select the color.
4. Apply-> OK

Corresponding color value

Log Level Color value
VERBOSE BBBBBB
DEBUG 0070BB
INFO 48BB31
WARN BBBB23
ERROR FF0006
ASSERT 8F0005

Directly copy the above color value to the following

If you want to set a more cool Android Studio Logcat, please read this blog. The effect is as follows.

Android Studio-Add the best Log * artifact you have ever seen *

4. Cancel the last project started each time when the AS is started.

If you have been using the AS service for a long time, you will hate this function. In addition, I started five projects at the same time and I disabled them, the next boot is all turned on to me in turn, and sometimes the computer crashes directly on windows. Fortunately, Google allows us to choose the project to be opened at every startup:

Effect:

5. Export/Import my "NB" Settings

We have made so many settings here. If the computer reinstalls the system and we reinstall the AS, We have to reset it again, which is a waste of time, so we can export these settings, download and import them directly.

Export:

Putting the settings. jar file on the desktop is not permanent. We recommend that you put the settings. jar file on the desktop on the online disk, and then download and import the file next time.

Import:

For example, after clicking it, select the settings. jar file we exported.

If you are interested, follow my Blog. My column will continue to update the Android Studio tutorial and the NDK configuration and compilation at the 2015 I/O conference, I will share it with you all.
I also received an invitation from CSND lecturers. Later I will record these Android Studio tutorials as videos and publish them to the CSDN Institute.

If you still have questions, please leave a message here and I will reply in time. If you still want to set something, you can leave a message. If you feel good, click the top.

/*** -------------- * Welcome to reprint | reprinted please note * -------------- * if it is helpful to you, please click | top | * -------------- * Please keep humble | you will go further * -------------- * @ author zsl * @ github https://github.com/yy1300326388 * @ blog http://blog.csdn.net/yy1300326388 */

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.