Simple setting of Android Studio
The default Android Studio is set as the gray interface. You can choose to use the cool black interface.
Settings --> Appearance --> Theme, select the Darcula topic.
Font settings: System font settings. If there is a problem with Chinese display on your Android Studio interface, or you want to modify the font of the menu bar, you can set the font in this way.
Settings --> Appearance, check Override default fonts by (not recommended), and select a Chinese font. I am using, and the results are good.
Programming font settings this section modifies the font of the editor, including the font displayed for all files.
Settings --> Editor --> ColZ workflow? Http://www.bkjia.com/kf/ware/vc/ "target =" _ blank "class =" keylink "> keys/keys + 3X1szlyrnTw73PtuCjrMfS0Ke5 + keys" "class =" img-polaroid "src =" http://www.bkjia.com/uploads/allimg/150428/0434534153-2.png "title = "\"/>
Settings --> Editor --> Colors & Fonts can also set the font color. You can select and set the font Based on the object you want to set, you can also download the font color setting package from the Internet to import it.
Code format setting if you want to set the display style when formatting your code, you can set it like this.
Settings --> Code Style. Similarly, you cannot modify the default configuration in Scheme. You need to create your own configuration.
The default file encoding is required for both your personal development and team development in the project team. For character compatibility issues, UTF-8 is recommended. For Windows in China, the default character encoding is GBK.
Settings --> File Encodings. We recommend that you set IDE Encoding, Project Encoding, and Properties Fiels to uniform Encoding.
The shortcut keys for Android Studio are different from those for Eclipse, but you can use the shortcut keys for Eclipse in Android Studio.
Settings --> Keymap. You can select the corresponding IDE shortcut keys from Keymaps. Android Studio supports many other IDE shortcut keys. We recommend that you use the shortcut keys of Android Studio instead of other IDE shortcuts.
When you want to change the configuration of a shortcut key, you need to click copy to create your own shortcut key and set it on it.
In the default shortcut key of Android Studio, the code prompt is Ctrl + Space, which conflicts with the system input key and requires special settings.
Main menu --> Code --> Completion --> Basic, change the shortcut key combination you want to replace.
For other settings, the editing area of Android Studio has a vertical line in the middle. This line is used to remind programmers that the length of a line of code should not exceed this line. If you do not want to display this line, you can set it like this.
Settings --> Editor --> Appearance, deselect Show right margin (configured in Code Style options ).
2. display the row number
Settings --> Editor --> Appearance, check Show line numbers.
3. A space is displayed. I am used to displaying spaces, so that I can see whether the indentation is tab indent or space indent. We recommend that you use space indentation.
Settings --> Editor --> Appearance, check Show whitespaces.
4. Remove the stitching check. I personally think it is useless, so disable it.
Settings --> Inspections --> Spelling, deselect the check box.
5. If you use Git for version control, you need to set the Git Installation File directory.
Settings --> Version Control --> Git, select your Git installation directory on the right.
6 plug-ins. Like Eclipse, Android Studio supports plug-ins. Android Studio comes with some plug-ins by default. If you do not use some plug-ins, you can disable them.
Settings --> Plugins. The list of installed plug-ins is displayed on the right. Deselect the check box to disable the plug-in.
I personally disabled the following plug-ins:
- CVS Integration: the version control system of CVS, which is unavailable.
- Google Cloud Tools For Android Studio: unavailable to Google Cloud.
- Google Login: log on with a Google account. The 'Google Cloud Tools For Android Studio ** plug-in is required and cannot be used.
- Hg4idea: The Mercurial version control system, which is unavailable.
If option 2 and option 3 are disabled, you cannot use the import sample function ).
You can search for and install the plug-in on the Browse repositories page.
I personally install the following plug-ins:
- . Gitignore support:. gitignore file management plug-in the Git version control system.
7. Check for updates. Android Studio supports automatic update check. When the official version has not been released before, it may be updated several times a week. You can set the check type to control the update type.
Settings --> Updates. Check for updates in channel to enable automatic update Check. You can disable automatic check for updates. The list on the right is the update channel.
- Stable Channel: the official version Channel. Only the latest official version is available.
- Beta Channel: Test Channel. Only the latest test version is available.
- Dev Channel: The development and release Channel. Only the latest development version is obtained.
- Canary Channel: Specifies the preview publish Channel. Only the latest preview version is obtained.
Among the above four channels, the Stable Channel is the most Stable and has fewer problems. Canary Channel can obtain the latest version, which has many problems.
8. Automatic Import. When you copy a piece of code from other places to Android Studio, the default Android Studio will not automatically import the reference of the class used in this Code. You can set it like this.
Settings --> Editor --> Auto Import, and select Add unambiguous improts on the fly.
9 sometimes, when running Android Studio, many people will remind you that 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. The global Project Structure page is displayed as follows:
- Method 1
Select Configure --> Project Defaults --> Project Structure
- Method 2
Select File --> Other Settings --> Default Project Structure
Set the JDK or Android SDK directory on this page.
10. Someone has been on the card for a long time. The major reason is that there is a network connection problem. You can solve this problem by configuring hosts. If the check requires updates, you need to install it.
To skip this step, perform the following operations:
Find the idea. properties file in the bin directory under the Android Studio installation directory, and append disable. android. first. run = true to the end of the file.