The use of Androidstudio development app has been more than half a year, from the beginning of the unaccustomed to slowly adapt to gradually like the androidstudio, the middle of the process quite a twists and turns, now put their own androidstudio configuration experience summed down, share to everyone , hoping to bring convenience to Yimeimei.
Setting method of eye protection mode for children with obsessive-compulsive disorder
Edit field for traditional mode
Edit field for eye protection mode
Set Protection vision color #C7EDCC (eye green)
Development interface Settings
The default Android Studio is the gray interface, you can choose to use the cool black interface,settings–> appearance–> Theme, select the Darcula theme.
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 menu bar font, you can set the following:
settings–> appearance, check the Override default fonts by (not recommended), choose a font that supports Chinese, the default is Microsoft Ya black.
Programming font settings
If you want to modify the font of the editor and all the fonts that the file displays, you can set the following:
Settings–> editor–> Colors & fonts–> Font. The default system shows the Scheme as Defualt, you cannot edit it, you need to click on the right side of Save as ..., save a copy of your own settings, and set it in. You can then set the font in the Editor font. I like to use Courier New Font.
You can also set the color of fonts through settings–> editor–> Colors & Fonts, and you can also import custom font packs.
Code format settings
If you want to set the style that appears when your code is formatted, you can set the following:
Settings–> Code Style.
Default file Encoding settings
You need to use utf-8 in development, you can set up as follows:
Settings–> File encodings. It is recommended that you set the IDE Encoding, Project Encoding, Properties fiels to a uniform encoding.
Shortcut key Settings
First you can use Eclipse's shortcut keys in Android Studio. can also be set individually:
Settings–> Keymap. The keyboard shortcuts for the IDE are selected from the Keymaps, and Android Studio supports many of 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.
Modify default shortcut keys
When you want to modify a default shortcut configuration, you need to click Copy to create your own shortcut key and set it up.
Main menu–> code–> completion–> Basic, modify the shortcut key combination that you want to replace.
Set right margin alert line
The old driver programmer usually likes to set a vertical line to the Code editing field, which is used to remind the programmer that a line of code is best not to exceed this line, which can be set as follows:
settings–> editor–> appearance, tick Show right margin (configured in Code Style options).
Show line Numbers
Not much to say, or the above page:settings–> editor–> appearance, tick Show line numbers.
Show indent spaces
settings–> editor–> appearance, check Show whitespaces.
Disable spell checking
The purpose you understand settings–> inspections–> spelling, uncheck.
Plugin settings
Like Eclipse, Androidstudio support for plugins is perfect, Android studio comes with some plugins by default, and if you don't use some plugins, you can disable it. Settings–> Plugins, the right side will display a list of installed plugins, uncheck to disable the plugin.
In order to improve the performance of Androidstudio, we usually disable the following plugins.
1.CVS Integration:cvs version control system, less than
2.Google Cloud Tools for Android Studio:google
3.Google login:google Account Login, ' Google Cloud Tools for Android studio** plugin needs to be
4.hg4idea:mercurial version control system, with less than
It is important to note that if you disable the 2 and 3 options, you will not be able to use the Import sample feature.
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. Tick check for update in channel, which automatically checks for updates. You can disable automatic check for updates. The list on the right is the update channel.
Stable Channel: Official version channels, 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 release channel, only get the latest preview version
Auto Import Settings
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, which can be set as follows:
Settings–> editor–> Auto Import, tick Add unambiguous improts on the fly.
Sets the selected row color #E8F2FE
Set up Proxy
Setting up the SDK
Set up JDK
method One:
You need to go to the global Project Structure page to set it up. Go to the Global Project Structure page method as follows:
Select Configure–> Project defaults–> Project Structure
Method Two:
Select file–> other settings–> Default Project Structure
Set bulk modification of selected text
1. Use the mouse to drag and select text
2. Press and hold Ctrl+f
3. Operation, click Replace All to
Set up code comment templates
1. Click "File", "Settings" on the menu bar to open the Settings window
2. Click "File and Code Templates" under "IDE Settings" and select the class in Templates
3. Then select the file Header under includes tab
4. Setting up a custom template
5. Create a new Java class so that we can see our own set of annotation templates.
Set Logcat color
Final effect
1. Open Android-logcat in File->settings
2. Set the prompts as shown in the figure
3. System Toner Tray
Here is the log level color value I used, for reference only
VERBOSE:BBBBBBDEBUG:0070BBINFO:48BB31WARN:BBBB23ERROR:FF0006ASSERT:8F0005
Above is my summary of androidstudio commonly used configuration, follow-up I will continue to update more configuration, share to everyone.
Android Development Advanced Technology QQ Group:108721298
Summary of the most comprehensive Androidstudio configuration guide-including eye protection mode