IntelliJ IDEA is a popular integrated development environment (IDE) used by developers worldwide. It is a powerful tool that helps developers write, debug, and test code efficiently. IntelliJ IDEA is developed by JetBrains, a company that specializes in creating software development tools.
IntelliJ IDEA supports a wide range of programming languages, including Java, Kotlin, Groovy, Scala, and more. It offers a variety of features that make coding easier and faster, such as code completion, code analysis, and refactoring tools. The IDE also includes a built-in debugger, which allows developers to debug their code in real-time.
This cheat sheet provides a comprehensive list of shortcuts and tips for IntelliJ IDEA.
Navigation
Shortcut Description Ctrl + N
Search for a class Ctrl + Shift + N
Search for a file Ctrl + Shift + Alt + N
Search for a symbol Ctrl + E
View recent files Ctrl + Shift + E
View recent edited files Ctrl + B
Go to declaration Ctrl + Alt + B
Go to implementation Ctrl + Shift + I
View method implementation Ctrl + U
Go to super method or class Ctrl + Shift + T
Search for a test Ctrl + Shift + Alt + T
Run a test Ctrl + Shift + F12
Toggle full screen mode Ctrl + Shift + A
Search for an action Ctrl + Shift + F
Find in path Ctrl + Shift + R
Replace in path Ctrl + G
Go to line Ctrl + Alt + Left/Right
Navigate back/forward Ctrl + Shift + Backspace
Navigate to last edit location Ctrl + Shift + Alt + Left/Right
Navigate to previous/next method Ctrl + Alt + Up/Down
Move line up/down Ctrl + Shift + Up/Down
Move statement up/down
Editing
Shortcut Description Ctrl + Space
Code completion Ctrl + Shift + Space
Smart code completion Ctrl + Shift + Enter
Complete statement Ctrl + P
Show method parameters Ctrl + Q
Show documentation Ctrl + W
Select word at caret Ctrl + Shift + W
Unselect word at caret Ctrl + Alt + T
Surround with Ctrl + /
Comment/uncomment line or selection Ctrl + Shift + /
Comment/uncomment block Ctrl + D
Duplicate line or selection Ctrl + Y
Delete line Ctrl + Shift + J
Join lines Ctrl + Shift + U
Toggle case Ctrl + Shift + ]/[
Select till code block end/start Ctrl + Alt + Shift + T
Refactor this Ctrl + Alt + L
Reformat code Ctrl + Alt + O
Optimize imports Ctrl + Alt + I
Auto-indent lines Ctrl + Alt + M
Extract method Ctrl + Alt + V
Extract variable Ctrl + Alt + F
Extract field Ctrl + Alt + C
Extract constant Ctrl + Alt + P
Extract parameter Ctrl + Alt + N
Inline Ctrl + Alt + Shift + N
Inline all Ctrl + Alt + Shift + Up/Down
Move statement up/down Ctrl + Shift + Alt + Up/Down
Copy lines up/down
Debugging
Shortcut Description Ctrl + Shift + F9
Debug Ctrl + Shift + F10
Run F8
Step over F7
Step into Shift + F7
Smart step into Shift + F8
Step out Alt + F9
Run to cursor Alt + F8
Evaluate expression Ctrl + Alt + F8
Quick evaluate expression Ctrl + Shift + F8
Toggle breakpoint Ctrl + F8
View breakpoints Ctrl + Shift + F7
Highlight expression F9
Resume program Ctrl + F2
Stop program
Refactoring
Shortcut Description Ctrl + Alt + Shift + T
Refactor this Ctrl + Alt + L
Reformat code Ctrl + Alt + O
Optimize imports Ctrl + Alt + I
Auto-indent lines Ctrl + Alt + M
Extract method Ctrl + Alt + V
Extract variable Ctrl + Alt + F
Extract field Ctrl + Alt + C
Extract constant Ctrl + Alt + P
Extract parameter Ctrl + Alt + N
Inline Ctrl + Alt + Shift + N
Inline all Ctrl + Alt + Shift + Up/Down
Move statement up/down
Version Control
Shortcut Description Ctrl + K
Commit changes Ctrl + T
Update project Ctrl + Alt + Z
Revert changes Ctrl + Shift + K
Push changes Ctrl + Shift + Alt + V
VCS quick popup Ctrl + Alt + C
View changes Ctrl + Alt + D
View diff Ctrl + Alt + H
View history Ctrl + Alt + B
View branch Ctrl + Alt + T
View tags Ctrl + Alt + Shift + S
Settings Ctrl + Alt + Shift + A
Version control quick popup
Other
Shortcut Description Ctrl + Shift + F6
Change signature Ctrl + Shift + Alt + F7
Find usages Ctrl + Shift + Alt + F8
Show usages Ctrl + Shift + Alt + S
Project structure Ctrl + Alt + Shift + S
Settings Ctrl + Alt + Shift + F
Run anything Ctrl + Alt + Shift + X
Run anything Ctrl + Alt + Shift + C
Run anything Ctrl + Alt + Shift + V
Run anything Ctrl + Alt + Shift + D
Run anything Ctrl + Alt + Shift + E
Run anything Ctrl + Alt + Shift + R
Run anything Ctrl + Alt + Shift + T
Run anything Ctrl + Alt + Shift + G
Run anything Ctrl + Alt + Shift + Q
Run anything Ctrl + Alt + Shift + W
Run anything Ctrl + Alt + Shift + Z
Run anything
References
IntelliJ IDEA Default Keymap