快捷键
- Duplicate Line or Selection:
⌘D - Comment with Line Comment:
⌘/ - Code > Completion > Basic:
⌘. - Code > Completion > SmartType:
⇧⌘. - Complete Current Statement:
⌘; - Reformat Code:
^⇧F - Show Reformat File Dialog:
^⇧⌘F - Other > Project:
⌘1 - Other > Structure:
⌘2 - Other > Build Variants:
⌘3 - Android Monitor:
⌘4 - Other > Preview:
⌘5 - Terminal:
⌥F12 - Main menu > Navigate > Select In:
⌥F1 - Surround With:
⌥⌘T - Delete Line:
⌘⌫
Code Style
All
- Use tab character:
true - Smart tabs:
true - Keep indents on empty lines:
true
Java
Java > Code Generation:
- Line comment at first column:
false - Add a space at comment start:
true
Java > Wrapping and Braces:
- Comment at first column:
false
Java > JavaDoc:
- Do not wrap one line comments:
true
其他
Appearance & Behavior > System Settings:
- Reopen last project on startup:
false
Editor > General > Auto Import:
- Optimize imports on the fly:
true - Add unambiguous imports on the fly:
true
Editor > General > Appearance:
- Show line numbers:
true - Show method separators:
true
Editor > General > Code Completion:
- Case sensitive completion:
None
Editor > General > Code Folding:
- Method bodies:
false - Annotations:
true
Editor > General > Editor Tabs:
- Show tabs in single row:
false
Editor > Colors & Fonts > Font:
- Primary:
Menlo 18 - Secondary:
Ayuthaya
Editor > Colors & fonts > General:
- Unused symbol > Effects:
false - Warning > Error stripe mark:
false
Editor > Colors & Fonts > Console Font:
- Primary:
Menlo 18 - Secondary:
Ayuthaya
Editor > Colors & Fonts > File Status:
- Ignored:
#6C6C6C
Editor > Images:
- Zoom image with mouse wheel(Cmd + Mouse Wheel):
true
Editor > Colors & Fonts > Android Logcat:
- Assert:
#BA68C8 - Debug:
#2196F3 - Error:
#F44336 - Info:
#4CAF50 - Verbose:
#BBBBBB - Warning:
#FF9800