IntelliJ IDEA Windows / Linux shortcuts

Version 2026.2 · source

Start here

Double Shift
Search Everywhere
Ctrl+Shift+A
Find Action
Alt+Enter
Context actions
Ctrl+E
Recent files
Ctrl+B
Go to declaration
Alt+F7
Find usages
Ctrl+Alt+L
Reformat code
Shift+F6
Rename

Concepts

Project window one folder, many modules
Editor tabs split into groups
Tool windows Alt+number to open
Keys on macOS
Windows / Linux macOS
Ctrl ⌘ Command (often)
Alt ⌥ Option
Shift ⇧ Shift
Ctrl+Shift+A ⇧⌘A
Alt+Enter ⌥↩

Search & Open

Double Shift
Search Everywhere
Finds files, classes, symbols and actions in one box.
Ctrl+Shift+A
Find Action
Run any IDE command by name.
Ctrl+N
Go to class
Ctrl+Shift+N
Go to file
Ctrl+Alt+Shift+N
Go to symbol
Ctrl+E
Recent files
Type to filter; also lists tool windows.
Ctrl+Shift+E
Recent locations
Ctrl+F12
File structure popup
Double Ctrl
Run Anything
Ctrl+Alt+S
Open Settings
Ctrl+B
Go to declaration or usages
Alt+F7
Find usages
Ctrl+Alt+Left / Right
Back / forward
Ctrl+Alt+B
Go to implementations
Ctrl+Shift+B
Go to type declaration
Ctrl+U
Go to super method
Ctrl+Shift+T
Go to test
Jumps between a class and its test.
Ctrl+G
Go to line:column
Ctrl+Tab
Switcher: files and tool windows
Alt+Left / Right
Previous / next tab
Alt+Up / Down
Previous / next method
Ctrl+Shift+M
Jump to matching brace
F11
Toggle bookmark
Ctrl+Alt+F7
Show usages popup

Edit

Ctrl+Z / Ctrl+Shift+Z
Undo / redo
Ctrl+D
Duplicate line or selection
Ctrl+Y
Delete line
Alt+Shift+Up / Down
Move line up / down
Ctrl+/
Toggle line comment
Ctrl+Shift+/
Toggle block comment
Ctrl+W / Ctrl+Shift+W
Extend / shrink selection
Grows the selection by syntactic unit.
Ctrl+Shift+V
Paste from history
Ctrl+Shift+Enter
Complete current statement
Adds missing brackets and semicolon.
Alt+Insert
Generate code
Constructors, getters, tests and more.
Ctrl+Alt+T
Surround with
Ctrl+Alt+L
Reformat code
Ctrl+Alt+I
Auto-indent lines
Ctrl+Alt+O
Optimize imports
Ctrl+Shift+J
Join lines
Ctrl+Shift+U
Toggle case
Ctrl+.
Fold selection

Completion & Help

Ctrl+Space
Basic completion
Press again for a broader result list.
Ctrl+Shift+Space
Type-matching completion
Alt+Enter
Show context actions
Ctrl+P
Parameter info
Ctrl+Q
Quick documentation
Ctrl+F1
Show error description
F2 / Shift+F2
Next / previous code issue
Alt+6
Problems window

Multi-Cursor

Alt+Shift+Click
Add or remove a caret
Alt+J
Add selection for next occurrence
Ctrl+Alt+Shift+J
Select all occurrences
Double Ctrl+Up / Down
Clone caret above / below
Press Ctrl twice, hold on the second press, then arrow.
Alt+Shift+Insert
Column selection mode

Find & Replace

Ctrl+F
Find in file
Ctrl+R
Replace in file
Ctrl+Shift+F
Find in files
Ctrl+Shift+R
Replace in files
Ctrl+Shift+F7
Highlight usages in file

Refactor

Shift+F6
Rename
Updates all usages, optionally comments and strings.
Ctrl+Alt+Shift+T
Refactor this
Menu of refactorings valid at the caret.
Ctrl+Alt+M
Extract method
Ctrl+Alt+V
Introduce variable
Ctrl+Alt+N
Inline
F6
Move
Ctrl+F6
Change signature
Alt+Delete
Safe delete

Run & Debug

Shift+F10
Run current configuration
Shift+F9
Debug current configuration
Ctrl+F8
Toggle line breakpoint
F8 / F7 / Shift+F8
Step over / into / out
F9
Resume program
Ctrl+F2
Stop
Alt+F8
Evaluate expression
Alt+F9
Run to cursor
Ctrl+F9
Build project
Ctrl+Shift+F9
Rebuild
Ctrl+Shift+F8
View breakpoints

Version Control

Alt+`
VCS operations popup
Ctrl+K
Commit
Ctrl+Shift+K
Push
Ctrl+T
Update project
Ctrl+Alt+Z
Rollback
Ctrl+Alt+Shift+Down / Up
Next / previous change
F7 / Shift+F7
Next / previous diff

Windows

Alt+1
Project tool window
Alt+0
Commit tool window
Alt+9
Version Control window
Alt+F12
Terminal
Escape
Back to the editor
Shift+Escape
Hide active tool window
Ctrl+Shift+F12
Hide all tool windows
Press again to restore them.
F12
Jump to last tool window
Ctrl+Alt+Shift+Left / Right
Resize tool window

Recipes

Rename safely
Caret on symbol, Shift+F6Type new name, EnterReview Refactor Preview if prompted
Edit all matches at once
Select word, Alt+J (repeat)Ctrl+Alt+Shift+J selects allType, then Escape
Debug a failing line
Ctrl+F8 on the lineShift+F9 to startF8 over, F7 into, Alt+F8 to inspect
Commit and push
Ctrl+K, write messageCommit and Push, or Ctrl+Shift+K later