Show Menu
Cheatography

Intellij Shortcuts Cheat Sheet (DRAFT) by

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 abbrev­iation for camel-hump autoco­mplete
TLE
=>
TimeLi­mit­edEntry

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