Configuration when Android Studio is used for the first time
1. First installation:
After Android Studio is installedAvoid downloading the new SDK, The operation is as follows:
Before starting the AS, you must first import the idea in the bin directory. add a row in the properties file: disable. android. first. run = true to avoid automatically re-downloading the SDK when the AS is enabled for the first time. Right-click the installation Package on the mac platform and choose Show Package Contents to find the bin directory.
When you open Android Studio for the first time, you need to configure JDK and SDK:
2. Create an Android Studio project:
After configuring JDK and Android SDK, you can start creating an Android project:
After you have set the project name and path, you can click next:
If you install Android Studio for the first time, the following window appears:
Is downloading Gradle, about 50 MB. Because I am visiting a foreign website, I suggest FQ.
3. Simple settings of Android Studio:
1. Modify the topic:
You may think that the software interface is not very nice. We can change the topic. Select "File -- settings -- apperance -- theme" on the menu bar, and select Darcula as the topic:
2. Import a third-party topic:
The two themes provided by the system may not look very good. We can go to the website http://www.ideacolorthemes.org/home/to get the third-party theme, which is better than sublimetheme:
Is a jar package. How can I import data to Android Studio?
Don't worry. Go back to Android Studio and select "File-Import Settings" on the menu bar to Import the downloaded jar package.
3. Code font modification:
Select "File -- settings -- Editor -- Colors & Fonts -- Font" in the menu bar ":
You can also modify the font of the console:
After modification, we found that some of the default fonts of AS, such AS the fonts of the project directory on the sidebar, have not changed. If you want to change the fonts, modify the default font of:
4. Disable update:
As shown in:
5. Modify the shortcut key habits:
If you want to change to the Eclipse shortcut style, you can select "file -- Settings -- Keymap" on the menu bar ":
I won't change it here.
6. the following message is displayed when an api document is added:
By default, AS does not have the api documentation floating prompt. The prompt is displayed only when you press Ctrl + Q. If you want to add an api's Automatic Floating prompt, set it as follows:
, In the red box part of the hook on the line, but this will increase the performance consumption of the computer, you can not set, according to personal habits.
7. Automatic prompt for configuration code:
Android Studio automatically prompts the code by default. Its settings are as follows:
The shortcut key prompted by the code is in the following position:
In the search box, enter "class name completion" and you will see that the default shortcut key prompted by the Code is Ctrl + Alt + space. If you want to change this shortcut key, the operation is as follows:
In the left-side Navigation Pane, right-click the red box and modify it in the displayed dialog box.
Note: If you are used to using Eclipse, note that [Alt +/] In android Studio is another shortcut key:
Users who are used to using Eclipse can exchange the two shortcut keys in the red box.
Configure the case sensitivity of code prompts:
The default code prompt for AS is:Case SensitiveDon't believe it. Enter a lower-case intent, and the prompt is as follows:
When an upper-case Intent is input, the following message is displayed: (Intent class appears at this time)
The above two figures show that the AS default code prompt isCase Sensitive. What should I do if I want to make the AS case insensitive? The procedure is as follows:
. The effect is as follows:
Press Ctrl and click the mouse to view the source code:
If the sdk has been successfully loaded, this is actually set in the shortcut key:
The shortcut key in the blue box means: press Ctrl and click the mouse to view the source code.
8. Set the automatic import package:
Previously in Eclipse, we had to export packages every time we referenced some classes, and AS can be set to automatically export packages. The settings are as follows:
Select the positions of the two arrows.
9. display the number of lines of code:
.
10. Disable Automatic Opening of the previous project:
I like to select the project to open and disable it. The settings are as follows:
11. disable code folding:
Intellij IDEA automatically folds code in many places by default, but I am not familiar with it, so I canceled it and set it as follows:
12. Modify the comment location and disable "Statement heap line ":
Comment at frist column: If it is enabled, the Comment symbol will be at the beginning of the line, otherwise it will be commented according to indentation. I canceled it. Control statement in one line: When formatting the Code, some very short statements are merged into one line. I think this affects code readability, so it is canceled.
13. Modify the new file header:
Every time you create a new class, you must be familiar with the following comments?
/*** Created by smyhvae on 2015/5/7.*/
In fact, it is set at the following position:
14. Modify file encoding to UTF-8:
Android Studio 1.1 default encoding method is UTF-8, to Android Studio 1.2 default encoding method is GBK, we still change to UTF-8, don't pitfall teammates Oh: