IntelliJ IDEA
IntelliJ / WebStorm Keyboard Shortcuts
Essential IntelliJ IDEA and WebStorm keyboard shortcuts for editing, navigation, refactoring, debugging, and version control.
General
| Shortcut (Win/Linux) | Shortcut (macOS) | Action |
|---|---|---|
Shift+Shift | Shift+Shift | Search Everywhere |
Ctrl+Shift+A | Cmd+Shift+A | Find Action |
Ctrl+Alt+S | Cmd+, | Open Settings |
Ctrl+Shift+F12 | Cmd+Shift+F12 | Toggle maximize editor |
Alt+1 | Cmd+1 | Project tool window |
Alt+F12 | Opt+F12 | Terminal |
Ctrl+Tab | Ctrl+Tab | Switcher (recent files) |
Ctrl+E | Cmd+E | Recent files |
Ctrl+Shift+E | Cmd+Shift+E | Recent locations |
Ctrl+F4 | Cmd+W | Close active tab |
Editing
| Shortcut (Win/Linux) | Shortcut (macOS) | Action |
|---|---|---|
Ctrl+Space | Ctrl+Space | Basic code completion |
Ctrl+Shift+Space | Ctrl+Shift+Space | Smart code completion |
Ctrl+Shift+Enter | Cmd+Shift+Enter | Complete statement |
Alt+Enter | Opt+Enter | Show intention actions / quick fix |
Ctrl+P | Cmd+P | Parameter info |
Ctrl+Q | Ctrl+J | Quick documentation |
Ctrl+D | Cmd+D | Duplicate line or selection |
Ctrl+Y | Cmd+Backspace | Delete line |
Ctrl+/ | Cmd+/ | Toggle line comment |
Ctrl+Shift+/ | Cmd+Shift+/ | Toggle block comment |
Ctrl+W | Opt+Up | Extend selection |
Ctrl+Shift+W | Opt+Down | Shrink selection |
Alt+Shift+Up | Opt+Shift+Up | Move line up |
Alt+Shift+Down | Opt+Shift+Down | Move line down |
Ctrl+Shift+U | Cmd+Shift+U | Toggle case |
Tab | Tab | Indent |
Shift+Tab | Shift+Tab | Unindent |
Ctrl+Alt+L | Cmd+Opt+L | Reformat code |
Ctrl+Alt+O | Ctrl+Opt+O | Optimize imports |
Navigation
| Shortcut (Win/Linux) | Shortcut (macOS) | Action |
|---|---|---|
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 |
Ctrl+G | Cmd+L | Go to line |
Ctrl+B / Ctrl+Click | Cmd+B / Cmd+Click | Go to declaration |
Ctrl+Alt+B | Cmd+Opt+B | Go to implementation |
Ctrl+Shift+B | Cmd+Shift+B | Go to type declaration |
Alt+F7 | Opt+F7 | Find usages |
Ctrl+F12 | Cmd+F12 | File structure popup |
Ctrl+H | Ctrl+H | Type hierarchy |
Ctrl+Alt+Left | Cmd+Opt+Left | Navigate back |
Ctrl+Alt+Right | Cmd+Opt+Right | Navigate forward |
F2 | F2 | Next error/warning |
Shift+F2 | Shift+F2 | Previous error/warning |
Alt+Up | Ctrl+Up | Previous method |
Alt+Down | Ctrl+Down | Next method |
Refactoring
| Shortcut (Win/Linux) | Shortcut (macOS) | Action |
|---|---|---|
Shift+F6 | Shift+F6 | Rename |
Ctrl+F6 | Cmd+F6 | Change signature |
Ctrl+Alt+V | Cmd+Opt+V | Extract variable |
Ctrl+Alt+M | Cmd+Opt+M | Extract method |
Ctrl+Alt+C | Cmd+Opt+C | Extract constant |
Ctrl+Alt+F | Cmd+Opt+F | Extract field |
Ctrl+Alt+N | Cmd+Opt+N | Inline |
F5 | F5 | Copy class |
F6 | F6 | Move class |
Ctrl+Shift+Alt+T | Ctrl+T | Refactor this (menu) |
Search & Replace
| Shortcut (Win/Linux) | Shortcut (macOS) | Action |
|---|---|---|
Ctrl+F | Cmd+F | Find in file |
Ctrl+R | Cmd+R | Replace in file |
Ctrl+Shift+F | Cmd+Shift+F | Find in path (project-wide) |
Ctrl+Shift+R | Cmd+Shift+R | Replace in path |
F3 | Cmd+G | Find next |
Shift+F3 | Cmd+Shift+G | Find previous |
Debugging
| Shortcut (Win/Linux) | Shortcut (macOS) | Action |
|---|---|---|
Shift+F9 | Ctrl+D | Debug |
Shift+F10 | Ctrl+R | Run |
F8 | F8 | Step over |
F7 | F7 | Step into |
Shift+F8 | Shift+F8 | Step out |
F9 | Cmd+Opt+R | Resume program |
Ctrl+F8 | Cmd+F8 | Toggle breakpoint |
Alt+F8 | Opt+F8 | Evaluate expression |
Ctrl+Shift+F8 | Cmd+Shift+F8 | View breakpoints |
Version Control
| Shortcut (Win/Linux) | Shortcut (macOS) | Action |
|---|---|---|
Ctrl+K | Cmd+K | Commit |
Ctrl+Shift+K | Cmd+Shift+K | Push |
Ctrl+T | Cmd+T | Update project (pull) |
Alt+9 | Cmd+9 | Version control window |
Ctrl+Alt+Z | Cmd+Opt+Z | Rollback changes |
Alt+Shift+C | Opt+Shift+C | Recent changes |