IntelliJ IDEA Shortcuts

IntelliJ IDEA keyboard shortcuts for coding, refactoring, and debugging

Navigation

Ctrl+N / Cmd+O # go to class
Ctrl+Shift+N / Cmd+Shift+O # go to file
Ctrl+Alt+Shift+N / Cmd+Opt+O # go to symbol
Alt+Left/Right / Cmd+[/] # navigate back/forward
Ctrl+E / Cmd+E # recent files
Ctrl+Shift+E / Cmd+Shift+E # recent locations

Editing

Ctrl+Space / Ctrl+Space # basic completion
Ctrl+Shift+Space / Ctrl+Shift+Space # smart completion
Ctrl+Shift+Enter / Cmd+Shift+Enter # complete statement
Ctrl+D / Cmd+D # duplicate line
Ctrl+Y / Cmd+Delete # delete line
Ctrl+/ / Cmd+/ # comment line

Refactoring

Ctrl+Alt+Shift+T / Ctrl+T # refactor this
Shift+F6 / Shift+F6 # rename
Ctrl+Alt+M / Cmd+Opt+M # extract method
Ctrl+Alt+V / Cmd+Opt+V # extract variable
Ctrl+Alt+C / Cmd+Opt+C # extract constant
Ctrl+Alt+F / Cmd+Opt+F # extract field

Search

Shift Shift # search everywhere
Ctrl+F / Cmd+F # find in file
Ctrl+R / Cmd+R # replace in file
Ctrl+Shift+F / Cmd+Shift+F # find in files
Ctrl+Shift+R / Cmd+Shift+R # replace in files
Alt+F7 / Opt+F7 # find usages

Debugging

F8 / F8 # step over
F7 / F7 # step into
Shift+F8 / Shift+F8 # step out
F9 / F9 # resume program
Ctrl+F8 / Cmd+F8 # toggle breakpoint
Ctrl+Shift+F8 / Cmd+Shift+F8 # view breakpoints