Skip to content

↑↓ moveEnter openEsc close

IntelliJ keyboard shortcuts

IntelliJ 2025.3 · 61 shortcuts · checked Nov 2026 · Source: JetBrains docs

IntelliJ IDEA is JetBrains' Java and Kotlin IDE; PyCharm, WebStorm and the other JetBrains IDEs share most of these default keymap shortcuts.

Most used IntelliJ keyboard shortcuts

The IntelliJ shortcuts worth learning first. The full list follows, grouped by task.

61 shortcuts

Small screen: your system's keys only. Pick another system in the tabs above.

ActionMacWindowsLinux
Search EverywhereShift,ShiftShift,ShiftShift,Shift
Find an actionShiftCmdACtrlShiftACtrlShiftA
Go to a classCmdOCtrlNCtrlN
Go to a fileShiftCmdOCtrlShiftNCtrlShiftN
Go to a symbolOptionCmdOCtrlAltShiftNCtrlAltShiftN
Recent filesCmdECtrlECtrlE
Go to a lineCmdLCtrlGCtrlG
File structureCmdF12CtrlF12CtrlF12
Go to declarationCmdBCtrlBCtrlB
Go to implementationOptionCmdBCtrlAltBCtrlAltB
Go to the super methodCmdUCtrlUCtrlU
Find usagesOptionF7AltF7AltF7

Editing

22 shortcuts
ActionMacWindowsLinux
Basic code completionCtrlSpaceCtrlSpaceCtrlSpace
Smart code completionCtrlShiftSpaceCtrlShiftSpaceCtrlShiftSpace
Show intention actions and quick fixesOptionEnterAltEnterAltEnter
Parameter infoCmdPCtrlPCtrlP
Quick documentationF1CtrlQCtrlQ
Generate code (getters, constructors)CmdNAltInsertAltInsert
Surround withOptionCmdTCtrlAltTCtrlAltT
Comment with line commentCmd/Ctrl/Ctrl/
Comment with block commentOptionCmd/CtrlShift/CtrlShift/
Reformat codeOptionCmdLCtrlAltLCtrlAltL
Optimize importsCtrlOptionOCtrlAltOCtrlAltO
Duplicate the line or selectionCmdDCtrlDCtrlD
Delete the lineCmdBackspaceCtrlYCtrlY
Move the line upOptionShift↑AltShift↑AltShift↑
Move the line downOptionShift↓AltShift↓AltShift↓
Move the statement upShiftCmd↑CtrlShift↑CtrlShift↑
Move the statement downShiftCmd↓CtrlShift↓CtrlShift↓
Extend the selectionOption↑CtrlWCtrlW
Shrink the selectionOption↓CtrlShiftWCtrlShiftW
Add the next occurrenceCtrlGAltJAltJ
Select all occurrencesCtrlCmdGCtrlAltShiftJCtrlAltShiftJ
Expand or collapse a blockCmd=orCmd-Ctrl=orCtrl-Ctrl=orCtrl-

Refactoring

5 shortcuts
ActionMacWindowsLinux
RenameShiftF6ShiftF6ShiftF6
Refactor This menuCtrlTCtrlAltShiftTCtrlAltShiftT
Extract variableOptionCmdVCtrlAltVCtrlAltV
Extract methodOptionCmdMCtrlAltMCtrlAltM
InlineOptionCmdNCtrlAltNCtrlAltN
5 shortcuts
ActionMacWindowsLinux
Find in the fileCmdFCtrlFCtrlF
Replace in the fileCmdRCtrlRCtrlR
Next occurrenceCmdGF3F3
Find in filesShiftCmdFCtrlShiftFCtrlShiftF
Replace in filesShiftCmdRCtrlShiftRCtrlShiftR

Run and debug

7 shortcuts
ActionMacWindowsLinux
RunCtrlRShiftF10ShiftF10
DebugCtrlDShiftF9ShiftF9
Toggle a breakpointCmdF8CtrlF8CtrlF8
Step overF8F8F8
Step intoF7F7F7
Step outShiftF8ShiftF8ShiftF8
Resume the programOptionCmdRF9F9
ActionMacWindowsLinux
Project tool windowCmd1Alt1Alt1
TerminalOptionF12AltF12AltF12
Hide all tool windowsShiftCmdF12CtrlShiftF12CtrlShiftF12
Close the editor tabCmdWCtrlF4CtrlF4
CommitCmdKCtrlKCtrlK
PushShiftCmdKCtrlShiftKCtrlShiftK
Update the project (pull)CmdTCtrlTCtrlT
SettingsCmd,CtrlAltSCtrlAltS
Show the key map: which keys IntelliJ uses mostDarker orange = used by more shortcuts

IntelliJ editing shortcuts: format code, comment, delete and move lines

System.out.println and main
Type sout and press Tab for System.out.println(), and psvm (or main) then Tab for a main method. These are live templates, listed in Settings > Editor > Live Templates.
Getters and setters
Alt+Insert (Cmd+N on Mac) opens Generate, which writes constructors, getters, setters, equals and toString.
Edit several lines at once
Alt+Shift+click adds a caret, and Alt+Shift+Insert switches to column selection.
Uppercase and collapse all
Ctrl+Shift+U (Cmd+Shift+U) toggles the case of the selection; Ctrl+Shift+Minus (Cmd+Shift+Minus) folds every block in the file.

Code completion, quick fixes and refactoring in IntelliJ

Import classes
Alt+Enter on a red class name imports it. To import as you type, turn on Add unambiguous imports on the fly in Settings > Editor > General > Auto Import.

Run, debug and breakpoint shortcuts in IntelliJ

Remove all breakpoints
Ctrl+Shift+F8 (Cmd+Shift+F8) opens the Breakpoints dialog: select them all and press Delete.

Change, reset or switch the IntelliJ IDEA keymap

Every IntelliJ IDEA shortcut is listed in Settings > Keymap (Ctrl+Alt+S, or Cmd+Comma on Mac), where you can search by action name or by pressing the keys.

Eclipse, Visual Studio or VS Code keys
The keymap menu at the top switches the whole set to Eclipse, Visual Studio, VS Code or Emacs keys, so you can keep the shortcuts you already know.
Change one shortcut
Right-click an action, choose Add Keyboard Shortcut and press the keys; the dialog warns when they are already used.
Reset
Choose the default keymap again, or open the ⚙ next to a changed keymap and pick Restore Defaults.

IntelliJ keyboard shortcuts: questions

What is Search Everywhere in IntelliJ?
Press Shift twice to search classes, files, symbols, actions and settings from one box.
Do these shortcuts work in PyCharm and WebStorm?
Yes. All JetBrains IDEs use the same default keymap, so these keys work in PyCharm, WebStorm, PhpStorm, GoLand, Rider and the rest.
Why are IntelliJ keyboard shortcuts not working?
Your system may use the same keys first: on Ubuntu, Ctrl+Alt+arrow keys switch workspaces, and on a Mac some F-keys control Mission Control. Free them in the system settings, or change the IntelliJ keymap. Also check the keymap has not been switched to another set.
How do I learn IntelliJ shortcuts faster?
Press Ctrl+Shift+A (Cmd+Shift+A) and type an action to see its shortcut, or install the Key Promoter X plugin, which shows the shortcut each time you use the mouse for an action.

These are the default key bindings in IntelliJ IDEA 2025.3, as published by JetBrains. Shortcuts that need an extension, an add-in or a changed keymap are left out. Where two combinations do the same thing, both are shown.

Single-system lists: IntelliJ keyboard shortcuts for Mac, IntelliJ keyboard shortcuts for Windows, IntelliJ keyboard shortcuts for Linux.

Each shortcut has its own page with the keys for every system, related shortcuts and the same action in other apps. The printable cheat sheet fits the whole list on one or two pages.