Cheatography
https://cheatography.com
Android Studio Cheat Sheet
Common Key Commands
Search Everywhere |
Double⇧ |
Extend Selection |
⌥↑ |
Shrink Selection |
⌥↓ |
Find |
⌘ F |
Select all Occurrences |
⌃ ⌘G |
Android Studio Editor 8.1
Switch Document Tabs (right or left) |
⌃← or ⌃→ |
Switcher |
⌘ Tab |
Line Numbers |
Right Click on Gutter |
Code Location |
Right Click on Element in Breadcrumb |
Summary of Issues |
Click on Validation Bar |
Red Squiggly Line in Tab Title |
Error in Code |
Detatch Window |
Grab Tab Tile and Drag |
Code Lens
Hovering the mouse pointer over a marker for a line of code which is currently scrolled out of the viewing area of the editor will display a “lens” overlay containing the block of code
Splitting Editor Window 8.2
Split Tab |
Right click on Tab - choose options |
Unsplit Tab |
Right click on Tab - choose unsplit option |
Code Completion 8.3
Completion Suggestion |
⌃ Space |
Smart Code Completion |
⌃⇧Space |
Code Generation
The list of available code generation options
Statement Completion 8.4
Statement Completion |
⌘⇧ Enter |
Parameter Information 8.5
Paremeter Information |
⌘P |
Parameter Name Hints 8.6
Edit Parameter Hints |
Android Studio -> Preferences |
|
|
Code Folding 8.8
Fold/Unfold Statement |
⌘ + or ⌘ - |
Expand all |
⌘⇧+ |
Collapse all |
⌘⇧- |
Code Folding
Clicking on either of these markers will fold the statement such that only the signature line is visible
Quick Document Lookup 8.9
Relevant Reference Doc |
⌘J or F1 |
Code Refactoring 8.10
Reformat Code |
⌘⌥ L |
Code Style Preferences |
Android Studio -> Preferences |
Finding Sample Code 8.11
Find Sample Code |
highlight a method or class name in the editor, right-click on it and select the Find Sample Code menu option |
Live Templates 8.12
Insert Code |
⌘J |
Surround with Live Template |
⌘⌥J |
edit existing templates |
Preferences dialog and select Live Templates from the Editor section |
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by MAOG