IntelliJ IDEA Cheatsheet - Java IDE Shortcut Reference

IntelliJ is powerful enough to be slow to learn; the shortcuts are the unlock. This reference groups navigation, editing/refactoring, generation/completion, run/debug stepping, VCS and layout. It flags high-yield keys like Search Everything, Generate, and Rename across the hierarchy, plus the debugger stepping set. For Java/Kotlin work where jumping between related classes and runtime state is constant. After reading you navigate, refactor and debug without breaking to the mouse.

Dev Tools·55 commands·Last updated 2026-07-21
intellijideajavaShortcuts

Editing & Refactoring 13

Cmd+D
Duplicate current line
Cmd+Y
Delete current line
Cmd+/
Line comment
Cmd+Alt+/
Block comment
Cmd+Alt+L
Reformat code
Cmd+Alt+O
Optimize imports
Shift+F6
Rename
Cmd+Alt+V
Extract variable
Cmd+Alt+M
Extract method
Cmd+Alt+C
Extract constant
Cmd+Alt+F
Extract field
Cmd+Alt+N
Inline
Alt+Enter
Quick fix / suggestion

Code Completion 7

Ctrl+Space
Basic completion
Ctrl+Shift+Space
Smart completion
Cmd+P
Parameter info
Cmd+Q
Quick documentation
F4
View source
Alt+J
Select next occurrence
Cmd+Alt+T
Surround with template

Run & Debug 10

Ctrl+R
Run current configuration
Ctrl+D
Debug current configuration
Ctrl+Shift+R
Run current file
Ctrl+Shift+D
Debug current file
F8
Step over
F7
Step into
Shift+F8
Step out
Alt+F9
Run to cursor
Cmd+F8
Toggle breakpoint
Cmd+Shift+F8
View all breakpoints

Version Control 6

Cmd+K
Commit
Cmd+T
Pull
Cmd+Shift+K
Push
Alt+`
VCS operations popup
Cmd+9
Open Git tool window
Alt+3
Open Find tool window

Window Management 8

Cmd+1
Open Project tool window
Cmd+4
Open Run tool window
Cmd+5
Open Debug tool window
Cmd+7
Open Structure tool window
Cmd+Shift+F12
Maximize editor
Cmd+,
Open Settings
Cmd+;
Open Project Structure
Shift+Shift
Search Everywhere

Tips

  • Alt+Enter is the universal shortcut; pressing it on a warning/error shows a fix suggestion.
  • Shift+Shift quickly searches anything (classes, files, symbols, actions).
  • Before Cmd+Alt+L reformats code, set up the Code Style first.

Official References

Each command links to its official documentation below, so you can verify the latest usage and read deeper.

Maintained by LaoHand

Publicly updated on Jul 21, 2026, continuously proofread against official docs.

Contact Us

Wrong command or description? Send us corrections, business inquiries or product feedback by email.

Contact Us