WebStorm keyboard shortcuts

WebStorm's default keymap covers search, code completion, editing, navigation, refactoring, files, tabs, debugging, and version control. The reference uses the standard Windows/Linux and macOS keymaps and keeps two-stroke commands labeled as sequences.

Windows, macOS, Linux · 74 shortcuts

Search and navigation

Find files, actions, symbols, usages, recent documents, errors, and definitions throughout a WebStorm project.

ActionWindowsmacOSLinux
Search EverywherePress Shift twice.ShiftShiftShiftShiftShiftShift
Find and run an actionCtrlShiftACmdShiftACtrlShiftA
Open Run AnythingPress Ctrl twice.CtrlCtrlCtrlCtrlCtrlCtrl
Open recent filesCtrlECmdECtrlE
Find in the current fileCtrlFCmdFCtrlF
Replace in the current fileCtrlRCmdRCtrlR
Find in filesCtrlShiftFCmdShiftFCtrlShiftF
Find usagesAltF7OptionF7AltF7
Go to declaration or definitionCtrlBCmdBCtrlB
Go to a classCtrlNCmdOCtrlN
Go to a fileCtrlShiftNCmdShiftOCtrlShiftN
Go to a symbolCtrlAltShiftNCmdOptionOCtrlAltShiftN
Go to a typeCtrlShiftBCmdShiftBCtrlShiftB
Go to the next problemF2F2F2
Go to the previous problemShiftF2ShiftF2ShiftF2
Go to the last edit locationCtrlShiftBackspaceCmdShiftBackspaceCtrlShiftBackspace
Open recent locationsCtrlShiftECmdShiftECtrlShiftE

Editing and completion

Complete code, apply context actions, format, comment, duplicate, delete, and move text in the WebStorm editor.

ActionWindowsmacOSLinux
Show code completionCtrlSpaceCtrlSpaceCtrlSpace
Show context actionsAltEnterOptionEnterAltEnter
Show parameter informationCtrlPCmdPCtrlP
Show quick documentationCtrlQCtrlJCtrlQ
Extend the selectionCtrlWOptionUpCtrlW
Shrink the selectionCtrlShiftWOptionDownCtrlShiftW
Toggle a line commentCtrl/Cmd/Ctrl/
Toggle a block commentCtrlShift/OptionCmd/CtrlShift/
Reformat codeCtrlAltLCmdOptionLCtrlAltL
Duplicate the current line or selectionCtrlDCmdDCtrlD
Delete the current lineCtrlYCmdBackspaceCtrlY
Move a line or selection upAltShiftUpOptionShiftUpAltShiftUp
Move a line or selection downAltShiftDownOptionShiftDownAltShiftDown
CutCtrlXCmdXCtrlX
CopyCtrlCCmdCCtrlC
PasteCtrlVCmdVCtrlV
UndoCtrlZCmdZCtrlZ
RedoCtrlShiftZCmdShiftZCtrlShiftZ
Select allCtrlACmdACtrlA
Indent the current lineTabTabTab
Outdent the current lineShiftTabShiftTabShiftTab

Refactoring and generation

Generate code, surround statements, rename symbols, delete safely, and extract common code constructs with WebStorm's refactoring commands.

ActionWindowsmacOSLinux
Generate codeAltInsertCmdNAltInsert
Surround withCtrlAltTCmdOptionTCtrlAltT
Insert a live templateCtrlJCmdJCtrlJ
Rename a symbolShiftF6ShiftF6ShiftF6
Safe deleteAltDeleteCmdDeleteAltDelete
Extract a variableCtrlAltVCmdOptionVCtrlAltV
Extract a methodCtrlAltMCmdOptionMCtrlAltM
Extract a constantCtrlAltCCmdOptionCCtrlAltC
Extract a fieldCtrlAltFCmdOptionFCtrlAltF
Override methodsCtrlOCtrlOCtrlO
Implement methodsCtrlICtrlICtrlI
Go to super method or classCtrlUCmdUCtrlU

Files, tabs, and windows

Create, open, save, close, split, and switch WebStorm files, editor tabs, and tool windows.

ActionWindowsmacOSLinux
Create a new projectCtrlAltInsertCmdShiftNCtrlAltInsert
Open a file or projectCtrlOCmdOCtrlO
Save allCtrlSCmdSCtrlS
Close the active editor tabCtrlF4CmdWCtrlF4
Reopen the last closed tabCtrlShiftTCmdShiftTCtrlShiftT
Go to the next tabAltRightShiftCmd]AltRight
Go to the previous tabAltLeftShiftCmd[AltLeft
Split the editor and move rightCtrlAltRightCmdOptionRightCtrlAltRight
Split the editor and move downCtrlAltDownCmdOptionDownCtrlAltDown
Open SettingsCtrlAltSCmd,CtrlAltS
Open the Project tool windowAlt1Cmd1Alt1
Open the Terminal tool windowAltF12OptionF12AltF12
Open the Services tool windowAlt8Cmd8Alt8

Run, debug, and version control

Run or debug configurations, step through code, manage breakpoints, and open WebStorm's version-control actions.

ActionWindowsmacOSLinux
Run the current configurationShiftF10CtrlRShiftF10
Debug the current configurationShiftF9CtrlDShiftF9
Step overF8F8F8
Step intoF7F7F7
Step outShiftF8ShiftF8ShiftF8
Evaluate an expressionAltF8OptionF8AltF8
Toggle a breakpointCtrlF8CmdF8CtrlF8
Open the Run Anything menuDouble CtrlDouble CtrlDouble Ctrl
Open the VCS operations menuAlt`CtrlVAlt`
Commit changesCtrlKCmdKCtrlK
Update the projectCtrlTCmdTCtrlT

Make a printable WebStorm sheet