This is a draft cheat sheet. It is a work in progress and is not finished yet.
Text Navigation
Next / prev method |
fn + ↓/↑ |
Page down / up |
fn + ⌃ + ↓/↑ |
Fold / unfold block |
⌘ + -/+ |
Navigation
Find class |
⌘ + o |
Find symbol |
⌥ + ⌘ + o |
Find file |
⇧ + ⌘ + o |
Find action |
⇧ + ⌘ + a |
Search everywhere |
⇧ + ⇧, then |
Recent files |
⌘ + e |
Recently edited files |
⇧ + ⌘ + e |
Tips
Use caps-based abbreviation for camel-hump autocomplete |
TLE
=> TimeLimitedEntry
|
Text Editing
Move line down/up |
⇧ + ⌘ + ↑/↓ |
Move statement down/up |
⇧ +⌥ +⌘ + ↑/↓ |
Comment code block |
highlight => + ⌥ + ⌘ + / |
Expand/shrink selection |
⌥ + ↑/↓ |
Basic code completion |
⌃ + space |
Smart completion |
⇧ + ⌃ + space |
Postfix completion |
⌘ + j |
Code generation |
⌘ + n |
Format selection |
⌥ + ⌘ + l |
Optimize imports |
⌃ + ⌥ + o |
|
|
|
|
Version Control
Open commit dialogue |
⌘ + k |
See diff in dialogue |
⌘ + d |
Revert changes |
⌥ + ⌘ + z |
Open VCS dialogue |
⌃ + v |
|