Cheatography
https://cheatography.com
General
Save all |
Ctrl + S |
Synchronize |
Ctrl + Alt + Y |
Maximize/minimize editor |
Ctrl + Shift + F12 |
Add to favorites |
Alt + Shift + F |
Inspect current file with current profile |
Alt + Shift + I |
Quick switch scheme |
Ctrl + ` (backquote) |
Open settings dialogue |
Ctrl + Alt + S |
Open project structure dialog |
Ctrl + Alt + Shift + S |
Switch between tabs and tool window |
Ctrl + Tab |
Refactoring
Copy |
F5 |
Move |
F6 |
Safe delete |
Alt + Delete |
Rename |
Shift + F6 |
Change signature |
Ctrl + F6 |
Inline |
Ctrl + Alt + N |
Extract method |
Ctrl + Alt + M |
Extract variable |
Ctrl + Alt + V |
Extract field |
Ctrl + Alt + F |
Extract constant |
Ctrl + Alt + C |
Extract parameter |
Ctrl + Alt + P |
Writing Code
Generate code (getters, setters, etc) |
Alt + Insert |
Override methods |
Ctrl + O |
Implement methods |
Ctrl + I |
Surround with (if...else / try...catch / etc.) |
Ctrl + Alt + T |
Delete line at caret |
Ctrl + Y |
Collapse/expand current code block |
Ctrl + minus/plus |
Collapse/expand all code blocks |
Ctrl + Shift + minus/plus |
Duplicate current line or selection |
Ctrl + D |
Basic code completion |
Ctrl + Space |
Smart code completion (filters the list of methods and variables by expected type) |
Ctrl + Shift + Space |
Complete statement |
Ctrl + Shift + Enter |
Quick documentation lookup |
Ctrl + Q |
Show parameters for selected method |
Ctrl + P |
Go to declaration (directly) |
Ctrl + B or Ctrl + Click |
Go to implementations |
Ctrl + Alt + B |
Go to super-method/super-class |
Ctrl + U |
Open quick definition lookup |
Ctrl + Shift + I |
Toggle project tool window visibility |
Alt + 1 |
Toggle bookmark |
F11 |
Toggle bookmark with mnemonic |
Ctrl + F11 |
Comment/uncomment with line |
Ctrl + / |
Comment/uncomment with block |
Ctrl + Shift + / |
Select successively increasing code blocks |
Ctrl + W |
Decrease current selection to previous state |
Ctrl + Shift + W |
Move to code block start |
Ctrl + [ |
Move to code block end |
Ctrl + ] |
Select to the code block start |
Ctrl + Shift + [ |
Select to the code block end |
Ctrl + Shift + ] |
Delete to end of word |
Ctrl + Delete |
Delete to start of word |
Ctrl + Backspace |
Optimize imports |
Ctrl + Alt + O |
Project quick fix (show intention actions and quick fixes) |
Alt + Enter |
Reformat code |
Ctrl + Alt + L |
Auto-indent lines |
Ctrl + Alt + I |
Indent/unindent lines |
Tab/Shift + Tab |
Smart line join |
Ctrl + Shift + J |
Smart line split |
Ctrl + Enter |
Start new line |
Shift + Enter |
Next/previous highlighted error |
F2 / Shift + F2 |
|
|
Build and Run
Build |
Ctrl + F9 |
Build and run |
Shift + F10 |
Apply changes (with Instant Run) |
Ctrl + F10 |
Debugging
Debug |
Shift + F9 |
Step over |
F8 |
Step into |
F7 |
Smart step into |
Shift + F7 |
Step out |
Shift + F8 |
Run to cursor |
Alt + F9 |
Evaluate expression |
Alt + F8 |
Resume program |
F9 |
Toggle breakpoint |
Ctrl + F8 |
View breakpoints |
Ctrl + Shift + F8 |
Navigating and Searching Within Studio
Search everything (including code and menus) |
Press Shift twice |
Find |
Ctrl + F |
Find next |
F3 |
Find previous |
Shift + F3 |
Replace |
Ctrl + R |
Find action |
Ctrl + Shift + A |
Search by symbol name |
Ctrl + Alt + Shift + N |
Find class |
Ctrl + N |
Find file (instead of class) |
Ctrl + Shift + N |
Find in path |
Ctrl + Shift + F |
Open file structure pop-up |
Ctrl + F12 |
Navigate between open editor tabs |
Alt + Right/Left Arrow |
Jump to source |
F4 / Ctrl + Enter |
Open current editor tab in new window |
Shift + F4 |
Recently opened files pop-up |
Ctrl + E |
Recently edited files pop-up |
Ctrl + Shift + E |
Go to last edit location |
Ctrl + Shift + Backspace |
Close active editor tab |
Ctrl + F4 |
Return to editor window from a tool window |
Esc |
Hide active or last active tool window |
Shift + Esc |
Go to line |
Ctrl + G |
Open type hierarchy |
Ctrl + H |
Open method hierarchy |
Ctrl + Shift + H |
Open call hierarchy |
Ctrl + Alt + H |
Version Control / Local History
Commit project to VCS |
Ctrl + K |
Update project from VCS |
Ctrl + T |
View recent changes |
Alt + Shift + C |
Open VCS popup |
Alt + ` (backquote) |
|
Created By
https://github.com/kekc42
Metadata
Favourited By
Comments
kjs, 13:19 30 Mar 18
favorable
Add a Comment
Related Cheat Sheets