1. Preface
In the previous article, "Android Studio downloads and installs," We've covered the download and installation steps for Android Studio, which we'll take a brief introduction to the basic common use of Android studio.
Reprint Please specify source: http://www.cnblogs.com/gis-luq/p/4760846.html
2, basic configuration 2.1, theme settings
Open File > Settings > Appearance & Behavior > Appearance, and set the theme style in theme in the UI Options tab.
darcula--Black theme style intellij--white theme style windows--windows theme style
2.2. Code font settings
Open File > Settings > Editor > Colors & Fonts > Font, Save as a new scheme in the scheme in the tab, and set the font size, style.
2.3. Environment font settings
Code font has been enlarged, but the system environment of the font is still relatively small, for some high-resolution machines, we have to make the code and Environment font uniform can be set
The options UI options in File > Settings > Appearance & Behavior > Appearance are set in the corresponding font format. This will enable the unification of font amplification, the author of the machine due to the resolution is not high, so the default is good.
2.4. Text Encoding settings
The encoding settings are divided into: IDE Encoding settings, Engineering coding settings, and encoding information corresponding to each file.
2.5, the code version of the management
Android Studio supports a variety of code versioning controls, and in the file > Settings > Version Control tab we can see Common git,subversion,mercurial, and customized support for GitHub. Specific settings here do not do too much explanation.
3. Common shortcut keys
For beginners or don't like the eclipse of the students, certainly want to learn the default studio shortcut keys, the following a number of commonly used some shortcut keys, more shortcut keys also need everyone to get accustomed to.
| Action |
Mac OSX |
Win/linux |
| Comment Code (//) |
CMD +/ |
Ctrl +/ |
| Comment Code (/**/) |
CMD + Option +/ |
Ctrl + Alt +/ |
| Formatting code |
CMD + Option + L |
Ctrl + Alt + L |
| Clear Invalid Package reference |
Option + Control + O |
Alt + Ctrl + O |
| Find |
CMD + F |
Ctrl + F |
| Find + Replace |
CMD + R |
Ctrl + R |
| Move code up and down |
Option + Shift + up/down |
Alt + Shift + up/down |
| Delete Row |
CMD + Delete |
Ctrl + Y |
| Expand Narrow Selection |
Option + Up/down |
Ctrl + W/ctrl + Shift + W |
| Quick Build Structure |
CMD + Option + T |
Ctrl + Alt + T |
| Quick Overwrite Method |
Ctrl + O |
Ctrl + O |
| Quick position to beginning/end |
CMD + left/right |
Ctrl + left/right |
| Collapse Unwind code block |
CMD + Plus,minus |
Ctrl + Plus/minus |
| Collapse Expand all code blocks |
CMD + Shift + plus,minus |
Ctrl + Shift + plus,minus |
| File method Structure |
CMD + F12 |
Ctrl + F12 |
| Find the location of the call |
Ctrl + Option + H |
Ctrl + Alt + H |
| Uppercase and lowercase conversions |
CMD + Shift + U |
Ctrl + Shift + U |
(PS: The above shortcuts do not try to confirm in the win platform, welcome feedback error and supplement)
4. References
http://stormzhang.com/devtools/2014/12/09/android-studio-tutorial3/
http://segmentfault.com/a/1190000002418983
"ArcGIS Runtime SDK for Android development note"--android Studio basic configuration and use