IntelliJ IDEA keyboard shortcuts
IntelliJ IDEA's default keymaps cover search, editing, coding assistance, navigation, debugging, and refactoring. This record keeps the high-use commands from JetBrains' current Windows and macOS keymap references.
Windows, macOS · 67 shortcutsTop commands
Search the project, open actions and settings, format code, and reach the most-used IntelliJ tools.
| Action | Windows | macOS |
|---|---|---|
| Search Everywhere | ShiftShift | ShiftShift |
| Find an action | CtrlShiftA | CmdShiftA |
| Show the Project window | Alt1 | Cmd1 |
| Rebuild the project | CtrlShiftF9 | CmdShiftF9 |
| Show intention actions | AltEnter | OptionEnter |
| Open recent files | CtrlE | CmdE |
| Find usages | AltF7 | AltF7 |
| Select in another tool window | AltF1 | AltF1 |
| Open settings | CtrlAltS | Cmd, |
| Generate code | AltInsert | CmdN |
| Open Run Anything | CtrlCtrl | CtrlCtrl |
| Debug the current configuration | AltShiftF9 | CtrlAltD |
| Open breakpoints | CtrlShiftF8 | CmdShiftF8 |
| Open the VCS operations popup | Alt` | CtrlV |
| Open Refactor This | CtrlAltShiftT | CtrlT |
| Reformat code | CtrlAltL | CmdOptionL |
Editing
Use the clipboard, undo history, indentation, line movement, and text selection commands in the editor.
| Action | Windows | macOS |
|---|---|---|
| Cut | CtrlX | CmdX |
| Copy | CtrlC | CmdC |
| Paste | CtrlV | CmdV |
| Paste as plain text | CtrlAltShiftV | CmdOptionShiftV |
| Paste from history | CtrlShiftV | CmdShiftV |
| Copy paths | CtrlShiftC | CmdShiftC |
| Save all | CtrlS | CmdS |
| Undo | CtrlZ | CmdZ |
| Redo | CtrlShiftZ | CmdShiftZ |
| Indent selection | Tab | Tab |
| Unindent line or selection | ShiftTab | ShiftTab |
| Auto-indent lines | CtrlAltI | CtrlOptionI |
| Start a new line | ShiftEnter | ShiftEnter |
| Start a new line before the current line | CtrlAltEnter | CmdOptionEnter |
| Delete the current line | CtrlY | CmdBackspace |
| Join lines | CtrlShiftJ | CtrlShiftJ |
| Duplicate line or selection | CtrlD | CmdD |
| Toggle case | CtrlShiftU | CmdShiftU |
| Select all | CtrlA | CmdA |
Coding assistance
Complete code, inspect parameters and documentation, move statements, and add comments around the caret.
| Action | Windows | macOS |
|---|---|---|
| Open basic completion | CtrlSpace | CtrlSpace |
| Open type-matching completion | CtrlShiftSpace | CtrlShiftSpace |
| Open the second completion list | CtrlAltSpace | CtrlAltSpace |
| Complete the current statement | CtrlShiftEnter | CmdShiftEnter |
| Show parameter information | CtrlP | CmdP |
| Show quick documentation | CtrlQ | F1 |
| Move the statement up | CtrlShiftUp | CmdShiftUp |
| Move the statement down | CtrlShiftDown | CmdShiftDown |
| Move the line up | AltShiftUp | OptionShiftUp |
| Move the line down | AltShiftDown | OptionShiftDown |
| Toggle line comment | Ctrl/ | Cmd/ |
| Toggle block comment | CtrlShift/ | CmdOption/ |
| Surround with | CtrlAltT | CmdOptionT |