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 shortcuts

Top commands

Search the project, open actions and settings, format code, and reach the most-used IntelliJ tools.

ActionWindowsmacOS
Search EverywhereShiftShiftShiftShift
Find an actionCtrlShiftACmdShiftA
Show the Project windowAlt1Cmd1
Rebuild the projectCtrlShiftF9CmdShiftF9
Show intention actionsAltEnterOptionEnter
Open recent filesCtrlECmdE
Find usagesAltF7AltF7
Select in another tool windowAltF1AltF1
Open settingsCtrlAltSCmd,
Generate codeAltInsertCmdN
Open Run AnythingCtrlCtrlCtrlCtrl
Debug the current configurationAltShiftF9CtrlAltD
Open breakpointsCtrlShiftF8CmdShiftF8
Open the VCS operations popupAlt`CtrlV
Open Refactor ThisCtrlAltShiftTCtrlT
Reformat codeCtrlAltLCmdOptionL

Editing

Use the clipboard, undo history, indentation, line movement, and text selection commands in the editor.

ActionWindowsmacOS
CutCtrlXCmdX
CopyCtrlCCmdC
PasteCtrlVCmdV
Paste as plain textCtrlAltShiftVCmdOptionShiftV
Paste from historyCtrlShiftVCmdShiftV
Copy pathsCtrlShiftCCmdShiftC
Save allCtrlSCmdS
UndoCtrlZCmdZ
RedoCtrlShiftZCmdShiftZ
Indent selectionTabTab
Unindent line or selectionShiftTabShiftTab
Auto-indent linesCtrlAltICtrlOptionI
Start a new lineShiftEnterShiftEnter
Start a new line before the current lineCtrlAltEnterCmdOptionEnter
Delete the current lineCtrlYCmdBackspace
Join linesCtrlShiftJCtrlShiftJ
Duplicate line or selectionCtrlDCmdD
Toggle caseCtrlShiftUCmdShiftU
Select allCtrlACmdA

Coding assistance

Complete code, inspect parameters and documentation, move statements, and add comments around the caret.

ActionWindowsmacOS
Open basic completionCtrlSpaceCtrlSpace
Open type-matching completionCtrlShiftSpaceCtrlShiftSpace
Open the second completion listCtrlAltSpaceCtrlAltSpace
Complete the current statementCtrlShiftEnterCmdShiftEnter
Show parameter informationCtrlPCmdP
Show quick documentationCtrlQF1
Move the statement upCtrlShiftUpCmdShiftUp
Move the statement downCtrlShiftDownCmdShiftDown
Move the line upAltShiftUpOptionShiftUp
Move the line downAltShiftDownOptionShiftDown
Toggle line commentCtrl/Cmd/
Toggle block commentCtrlShift/CmdOption/
Surround withCtrlAltTCmdOptionT

Make a printable IntelliJ IDEA sheet