Skip to content

↑↓ moveEnter openEsc close

WebStorm keyboard shortcuts

WebStorm 2025.2 · 46 shortcuts · checked Nov 2026 · Source: JetBrains docs

WebStorm is JetBrains' IDE for JavaScript and TypeScript. PhpStorm uses the same default keys, so this list serves both.

Most used WebStorm keyboard shortcuts

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

46 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 fileShiftCmdOCtrlShiftNCtrlShiftN
Go to a symbolOptionCmdOCtrlAltShiftNCtrlAltShiftN
Recent filesCmdECtrlECtrlE
Recent locationsShiftCmdECtrlShiftECtrlShiftE
Go to the declarationCmdBCtrlBCtrlB
Find usagesOptionF7AltF7AltF7
File structureCmdF12CtrlF12CtrlF12
Go to a lineCmdLCtrlGCtrlG
Next errorF2F2F2
Previous errorShiftF2ShiftF2ShiftF2
Find in filesShiftCmdFCtrlShiftFCtrlShiftF

Editing

17 shortcuts
ActionMacWindowsLinux
Show intention actions and quick fixesOptionEnterAltEnterAltEnter
Basic completionCtrlSpaceCtrlSpaceCtrlSpace
Insert a live templateCmdJCtrlJCtrlJ
Surround with a templateOptionCmdJCtrlAltJCtrlAltJ
Reformat codeOptionCmdLCtrlAltLCtrlAltL
Optimize importsCtrlOptionOCtrlAltOCtrlAltO
Comment with line commentCmd/Ctrl/Ctrl/
Comment with block commentOptionCmd/CtrlShift/CtrlShift/
Duplicate the lineCmdDCtrlDCtrlD
Delete the lineCmdBackspaceCtrlYCtrlY
Move the statement upShiftCmd↑CtrlShift↑CtrlShift↑
Move the statement downShiftCmd↓CtrlShift↓CtrlShift↓
Extend the selectionOption↑CtrlWCtrlW
Add the next occurrenceCtrlGAltJAltJ
Parameter infoCmdPCtrlPCtrlP
Quick documentationF1CtrlQCtrlQ
Join linesCtrlShiftJCtrlShiftJCtrlShiftJ

Refactoring

5 shortcuts
ActionMacWindowsLinux
RenameShiftF6ShiftF6ShiftF6
Extract variableOptionCmdVCtrlAltVCtrlAltV
Extract functionOptionCmdMCtrlAltMCtrlAltM
InlineOptionCmdNCtrlAltNCtrlAltN
Refactor thisCtrlTCtrlAltShiftTCtrlAltShiftT

Run and tools

10 shortcuts
ActionMacWindowsLinux
Run the current fileCtrlShiftRCtrlShiftF10CtrlShiftF10
Run the last configurationCtrlRShiftF10ShiftF10
Debug the last configurationCtrlDShiftF9ShiftF9
Toggle a breakpointCmdF8CtrlF8CtrlF8
Step overDebuggingF8F8F8
Step intoDebuggingF7F7F7
TerminalOptionF12AltF12AltF12
Project tool windowCmd1Alt1Alt1
CommitCmdKCtrlKCtrlK
SettingsCmd,CtrlAltSCtrlAltS
Show the key map: which keys WebStorm uses mostDarker orange = used by more shortcuts

WebStorm editing shortcuts: format, comment, duplicate and delete lines

Live templates
Type an abbreviation such as log and press Tab to expand it to console.log(); the full list is in Settings > Editor > Live Templates, where you can add your own.

Completion, documentation and refactoring in WebStorm

Run, debug, terminal and Git in WebStorm

Run an npm script
Open package.json and click the green arrow beside a script, or use the npm tool window; once run, Shift+F10 (Ctrl+R on Mac) runs it again.

Change WebStorm shortcuts in Settings > Keymap

Settings > Keymap (Ctrl+Alt+S, or Cmd+Comma on Mac) lists every WebStorm shortcut, and PhpStorm, Rider and the other JetBrains IDEs use the same screen. The full steps are in changing the IntelliJ IDEA keymap.

Find an action by its keys
Click the magnifier with a keyboard in the Keymap search box and press a combination to see which action uses it, useful before adding a shortcut for a live template or an npm script.

WebStorm keyboard shortcuts: questions

Does PhpStorm have the same shortcuts as WebStorm?
Yes. Both use the JetBrains default keymap, so every key here works in PhpStorm, IntelliJ IDEA and the other JetBrains IDEs.

These are the default key bindings in WebStorm 2025.2, 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: WebStorm keyboard shortcuts for Mac, WebStorm keyboard shortcuts for Windows, WebStorm 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.