IntelliJ IDEA keyboard shortcuts cheat sheet
JetBrains · 78 shortcuts78 IntelliJ IDEA shortcuts grouped by task, with Windows and Mac keys side by side. Click any row for the full answer page.
Essentials
| Action | Windows | Mac |
|---|---|---|
| Search everywhere | Double ShiftDouble Shift | Double ShiftDouble Shift |
| Find action | Ctrl+Shift+ACtrlShiftA | Cmd+Shift+A⌘⇧A |
| Show intention actions and quick-fixes | Alt+EnterAlt↵ | Option+Enter⌥↵ |
| Basic code completion | Ctrl+SpaceCtrlSpace | Ctrl+Space⌃Space |
| Smart code completion | Ctrl+Shift+SpaceCtrlShiftSpace | Ctrl+Shift+Space⌃⇧Space |
| Generate code | Alt+InsertAltInsert | Cmd+N⌘N |
| Recent files | Ctrl+ECtrlE | Cmd+E⌘E |
| Rename | Shift+F6ShiftF6 | Shift+F6⇧F6 |
| Save all | Ctrl+SCtrlS | Cmd+S⌘S |
| Reformat code | Ctrl+Alt+LCtrlAltL | Cmd+Option+L⌘⌥L |
| Comment with line comment | Ctrl+/Ctrl/ | Cmd+/⌘/ |
| Extend selection | Ctrl+WCtrlW | Option+Up⌥↑ |
| Shrink selection | Ctrl+Shift+WCtrlShiftW | Option+Down⌥↓ |
| Run anything | Double CtrlDouble Ctrl | Double CtrlDouble Ctrl |
Editing
| Action | Windows | Mac |
|---|---|---|
| Complete statement | Ctrl+Shift+EnterCtrlShift↵ | Cmd+Shift+Enter⌘⇧↵ |
| Parameter info | Ctrl+PCtrlP | Cmd+P⌘P |
| Quick documentation lookup | Ctrl+QCtrlQ | Cmd+J⌘J |
| Override methods | Ctrl+OCtrlO | Ctrl+O⌃O |
| Implement methods | Ctrl+ICtrlI | Ctrl+I⌃I |
| Surround with | Ctrl+Alt+TCtrlAltT | Cmd+Option+T⌘⌥T |
| Comment with block comment | Ctrl+Shift+/CtrlShift/ | Cmd+Option+/⌘⌥/ |
| Optimize imports | Ctrl+Alt+OCtrlAltO | Ctrl+Option+O⌃⌥O |
| Auto-indent lines | Ctrl+Alt+ICtrlAltI | Ctrl+Option+I⌃⌥I |
| Duplicate line | Ctrl+DCtrlD | Cmd+D⌘D |
| Delete line | Ctrl+YCtrlY | Cmd+Delete⌘Delete |
| Smart line join | Ctrl+Shift+JCtrlShiftJ | Ctrl+Shift+J⌃⇧J |
| Smart line split | Ctrl+EnterCtrl↵ | Cmd+Enter⌘↵ |
| Start new line | Shift+EnterShift↵ | Shift+Enter⇧↵ |
| Toggle case | Ctrl+Shift+UCtrlShiftU | Cmd+Shift+U⌘⇧U |
| Paste from recent buffers | Ctrl+Shift+VCtrlShiftV | Cmd+Shift+V⌘⇧V |
| Delete to word end | Ctrl+DeleteCtrlDelete | Option+Delete⌥Delete |
Navigation
| Action | Windows | Mac |
|---|---|---|
| Go to class | Ctrl+NCtrlN | Cmd+O⌘O |
| Go to file | Ctrl+Shift+NCtrlShiftN | Cmd+Shift+O⌘⇧O |
| Go to symbol | Ctrl+Alt+Shift+NCtrlAltShiftN | Cmd+Option+O⌘⌥O |
| Go to line | Ctrl+GCtrlG | Cmd+L⌘L |
| Go to declaration | Ctrl+BCtrlB | Cmd+B⌘B |
| Go to implementations | Ctrl+Alt+BCtrlAltB | Cmd+Option+B⌘⌥B |
| Go to super method | Ctrl+UCtrlU | Cmd+U⌘U |
| Go to type declaration | Ctrl+Shift+BCtrlShiftB | Ctrl+Shift+B⌃⇧B |
| Recent locations | Ctrl+Shift+ECtrlShiftE | Cmd+Shift+E⌘⇧E |
| Navigate back | Ctrl+Alt+LeftCtrlAlt← | Cmd+Option+Left⌘⌥← |
| Navigate forward | Ctrl+Alt+RightCtrlAlt→ | Cmd+Option+Right⌘⌥→ |
| Go to last edit location | Ctrl+Shift+BackspaceCtrlShift⌫ | Cmd+Shift+Delete⌘⇧Delete |
| File structure popup | Ctrl+F12CtrlF12 | Cmd+F12⌘F12 |
| Type hierarchy | Ctrl+HCtrlH | Ctrl+H⌃H |
| Call hierarchy | Ctrl+Alt+HCtrlAltH | Ctrl+Option+H⌃⌥H |
| Go to next error | F2F2 | F2F2 |
| Go to previous error | Shift+F2ShiftF2 | Shift+F2⇧F2 |
| Toggle bookmark | F11F11 | F3F3 |
Search and replace
| Action | Windows | Mac |
|---|---|---|
| Find | Ctrl+FCtrlF | Cmd+F⌘F |
| Find next | F3F3 | Cmd+G⌘G |
| Find previous | Shift+F3ShiftF3 | Cmd+Shift+G⌘⇧G |
| Replace | Ctrl+RCtrlR | Cmd+R⌘R |
| Find in files | Ctrl+Shift+FCtrlShiftF | Cmd+Shift+F⌘⇧F |
| Replace in files | Ctrl+Shift+RCtrlShiftR | Cmd+Shift+R⌘⇧R |
| Find usages | Alt+F7AltF7 | Option+F7⌥F7 |
| Select next occurrence | Alt+JAltJ | Ctrl+G⌃G |
| Select all occurrences | Ctrl+Alt+Shift+JCtrlAltShiftJ | Ctrl+Cmd+G⌃⌘G |
Refactoring
| Action | Windows | Mac |
|---|---|---|
| Refactor this | Ctrl+Alt+Shift+TCtrlAltShiftT | Ctrl+T⌃T |
| Change signature | Ctrl+F6CtrlF6 | Cmd+F6⌘F6 |
| Inline | Ctrl+Alt+NCtrlAltN | Cmd+Option+N⌘⌥N |
| Extract method | Ctrl+Alt+MCtrlAltM | Cmd+Option+M⌘⌥M |
| Extract variable | Ctrl+Alt+VCtrlAltV | Cmd+Option+V⌘⌥V |
| Extract field | Ctrl+Alt+FCtrlAltF | Cmd+Option+F⌘⌥F |
| Extract constant | Ctrl+Alt+CCtrlAltC | Cmd+Option+C⌘⌥C |
| Extract parameter | Ctrl+Alt+PCtrlAltP | Cmd+Option+P⌘⌥P |
| Safe delete | Alt+DeleteAltDelete | Cmd+Delete⌘Delete |
Run, debug and VCS
| Action | Windows | Mac |
|---|---|---|
| Build project | Ctrl+F9CtrlF9 | Cmd+F9⌘F9 |
| Run | Shift+F10ShiftF10 | Ctrl+R⌃R |
| Debug | Shift+F9ShiftF9 | Ctrl+D⌃D |
| Step over | F8F8 | F8F8 |
| Step into | F7F7 | F7F7 |
| Step out | Shift+F8ShiftF8 | Shift+F8⇧F8 |
| Resume program | F9F9 | Cmd+Option+R⌘⌥R |
| Toggle breakpoint | Ctrl+F8CtrlF8 | Cmd+F8⌘F8 |
| Commit project to VCS | Ctrl+KCtrlK | Cmd+K⌘K |
| Update project from VCS | Ctrl+TCtrlT | Cmd+T⌘T |
| Push commits | Ctrl+Shift+KCtrlShiftK | Cmd+Shift+K⌘⇧K |
More developer tools shortcuts
Ask your agent
Prompt
Make me a one-page IntelliJ IDEA cheat sheet from the 78 shortcuts at https://keyflowhub.com/shortcuts/intellij-idea, ordered by what I'm most likely to use, and point out any that clash with my current keybindings.
Paste into Claude Code and it will do the rest.
Questions
Windows: Ctrl + S. Mac: Cmd + S.
Windows: Ctrl + Shift + A. Mac: Cmd + Shift + A.
Sources: resources.jetbrains.com, www.jetbrains.com