dojo
IntelliJ IDEA Cheatsheet
ShortcutFoo uses a Spaced Repetition System that adapts to your training.
scf keyboard

Basic Editing I

⌘Y
Delete line at caret
⌥BACKSPACE
Delete to word start
⌘D
Duplicate line or block
⌘]
Mov to code block end
⌘[
Move to code start
^⇧J
Join lines
TAB
Indent selection
⌘⌥I
Auto-indent lines
scf keyboard

Basic Editing II

⌘⇧V
Paste from history
⌘DOWN
Scroll text one line down
⌘UP
Scroll text one line up
⌥⇧RIGHT
Select to next word
⌥⇧LEFT
Select to previous word
⌘⇧U
Toggle case
⇧↵
Start new line
^↵
Splie line
⇧TAB
Unindent selection
scf keyboard

Search

⌘F
Find
⌘R
Replace
^L
Search for next occurrence
^⇧L
Search for previous occurance
⌘F
Incremental search
^⇧F
Find in path
^⇧R
Replace in path
⌥F7
Find usages
⌘⇧F7
Highlight usages in file
⌘⌥F7
Show usages
scf keyboard

Advanced Editing I

^/
Comment/uncomment current line
^⇧?
Comment/uncomment block comment
⌘O
Override base class methods in current class
^N
Generate ...
^SPACE
Basic code completion
^⌥SPACE
Class name code completion
⌥/
Expand word
TAB
Next template variable
⇧TAB
Previous template variable
⌥DEL
Delete to word end
⌘⇧PAGEDOWN
Select to page bottom
⌘⇧PAGEUP
Select to page top
⇧END
Select to end of line
⇧HOME
Select to beginning of line
scf keyboard

Advanced Editing II

⌘PAGEDOWN
Go to page bottom
⌘PAGEUP
Go to page top
END
Move to end of line
HOME
Move to beginning of line
^J
Quick documentation
^J
Show table data
⌘⌥⇧H
Show the highlighting level pop-up window
^⇧Q
Show current method or class declaration
⌘F1
Show an error or warning description at caret
⇧F1
Show external documentation
⌘⌥T
Surround with...
^⇧SPACE
SmartType code completion
⌘⌥J
Surround with live template...
scf keyboard

Source Navigation I

⌘G
Navigate to line
⌘⌥B
Navigate to implementation of symbol under caret
^⇧B
Navigate to type declaration of symbol at caret
⌘⌥HOME
Navigate to related file
⌘[
Navigate to opening brace
⌘]
Navigate to closing brace
F2
Navigate to next highlighted error
⇧F2
Navigate to previous highlighted error
scf keyboard

Source Navigation II

⌘F12
File structure pop-up
⌥F1
Select target
⌘E
Show list of recently opened files
^H
Browse hierarchy for selected class
^⌥H
Browse call hierarchy for selected method
⌘⇧BACKSPACE
Move through the most recent change points
scf keyboard

Refactoring

⇧F6
Rename refactoring
F6
Move refactoring
F5
Copy refactoring
⇧F5
Clone refactoring
⌘DEL
Safe delete
⌘⌥M
Extract method
⌘⌥V
Introduce variable
⌘⌥F
Introduce field
⌘⌥C
Introduce constant
⌘⌥P
Introduce parameter
scf keyboard

Running and Debugging I

⌘F9
Make project
⌘⇧F9
Compile
⌥⇧F10
Choose configuration and run
⇧F10
Rerun without losing focus in editor
⇧F9
Debug
⌥⇧F9
Choose configuration and debug
⌥⇧F8
Force step over
⌥⇧F7
Force step into
F9
Resume program
⌥F8
Evaluate expression
⌘⌥F8
Quick evaluate expression
scf keyboard

Running and Debugging II

⇧F10
Run
⌘F10
Update
F8
Step over
F7
Step into
⇧F7
Smart step into
⇧F8
Step out
⌘⌥F9
Run to cursor
⇧F2
Stop program
⌘F8
Toggle breakpoint
⌘⇧F8
View breakpoints
⌘⌥F6
Switch to another coverage suite
achievement-star