WebStorm Keyboard Shortcuts

Complete WebStorm keyboard shortcuts reference — 122 shortcuts across 8 categories. Quick reference cheat sheet for Windows & Linux.

WebStorm runs the shared JetBrains keymap, so the editing and navigation keys match IntelliJ, PyCharm and Rider. What this page adds is how those keys behave for JavaScript and TypeScript — where "go to declaration" lands in a TypeScript definition file, what completion knows about a React component — plus the npm and multi-caret bindings that are specific here. The table is the Windows/Linux keymap; macOS uses Cmd.

General (9)

ShortcutAction
Shift + ShiftSearch Everywhere
Ctrl + Shift + AFind Action
Alt + 1Open Tool Window
Ctrl + Shift + F12Toggle Maximizing Editor
Alt + Shift + FAdd to Favorites
Alt + Shift + IInspect Current File
Ctrl + `Quick Switch Scheme
Ctrl + Alt + SOpen Settings
Ctrl + TabSwitcher

Editing (35)

ShortcutAction
Ctrl + SpaceBasic Code Completion
Alt + EnterShow Intention Actions
Ctrl + PParameter Info
Ctrl + QQuick Documentation
Ctrl + F1Show Error Description
Alt + InsertGenerate Code
Ctrl + Alt + TSurround With
Ctrl + JInsert Live Template
Ctrl + /Line Comment
Ctrl + Shift + /Block Comment
Ctrl + WExtend Selection
Ctrl + Shift + WShrink Selection
Alt + QContext Info
Ctrl + Alt + LReformat Code
Ctrl + Alt + IAuto-Indent Lines
TabIndent Selection
Shift + TabUnindent Selection
Ctrl + Shift + VPaste from History
Ctrl + DDuplicate Line
Ctrl + YDelete Line
Alt + Shift + UpMove Line Up
Alt + Shift + DownMove Line Down
Ctrl + Shift + JJoin Lines
Ctrl + EnterSplit Line
Shift + EnterStart New Line
Ctrl + Shift + UToggle Case
Ctrl + Shift + ]Select to Block End
Ctrl + Shift + [Select to Block Start
Ctrl + DeleteDelete to Word End
Ctrl + BackspaceDelete to Word Start
Ctrl + Numpad +Expand Code Block
Ctrl + Numpad -Collapse Code Block
Ctrl + Shift + Numpad +Expand All
Ctrl + Shift + Numpad -Collapse All
Ctrl + F4Close Editor Tab

Navigation (34)

ShortcutAction
Ctrl + BGo to Declaration
Ctrl + NGo to Class
Ctrl + Shift + NGo to File
Ctrl + Alt + Shift + NGo to Symbol
Alt + RightNext Editor Tab
Alt + LeftPrevious Editor Tab
F12Back to Tool Window
EscGo to Editor
Ctrl + GGo to Line
Ctrl + ERecent Files
Ctrl + Alt + RightNavigate Forward
Ctrl + Alt + LeftNavigate Back
Ctrl + Shift + BackspaceLast Edit Location
Alt + F1Select In
Ctrl + Alt + BGo to Implementation
Ctrl + Shift + IQuick Definition
Ctrl + Shift + BGo to Type Declaration
Ctrl + UGo to Super Method
Alt + UpPrevious Method
Alt + DownNext Method
Ctrl + ]Move to Block End
Ctrl + [Move to Block Start
Ctrl + Shift + MGo to Matching Brace
Ctrl + F12File Structure Popup
Ctrl + HType Hierarchy
Ctrl + Alt + HCall Hierarchy
F2Next Highlighted Error
Shift + F2Previous Highlighted Error
F4Jump to Source
Alt + HomeJump to Navigation Bar
F11Toggle Bookmark
Ctrl + Shift + F11Bookmark with Mnemonic
Ctrl + 1Go to Numbered Bookmark
Shift + F11Show Bookmarks

Search & Replace (10)

ShortcutAction
Ctrl + FFind
F3Find Next
Shift + F3Find Previous
Ctrl + RReplace
Ctrl + Shift + FFind in Path
Ctrl + Shift + RReplace in Path
Alt + F7Find Usages
Ctrl + F7Find Usages in File
Ctrl + Shift + F7Highlight Usages in File
Ctrl + Alt + F7Show Usages

Refactoring (11)

ShortcutAction
Ctrl + Alt + Shift + TRefactor This
F5Copy
F6Move
Alt + DeleteSafe Delete
Shift + F6Rename
Ctrl + F6Change Signature
Ctrl + Alt + NInline
Ctrl + Alt + MExtract Method
Ctrl + Alt + VExtract Variable
Ctrl + Alt + CExtract Constant
Ctrl + Alt + PExtract Parameter

Running & Debugging (16)

ShortcutAction
Alt + Shift + F10Select Configuration and Run
Alt + Shift + F9Select Configuration and Debug
Shift + F10Run
Shift + F9Debug
Ctrl + Shift + F10Run Context Configuration
Alt + Shift + RRerun Tests
Alt + F11Run npm Tasks
F8Step Over
F7Step Into
Shift + F7Smart Step Into
Shift + F8Step Out
Alt + F9Run to Cursor
Alt + F8Evaluate Expression
F9Resume Program
Ctrl + F8Toggle Breakpoint
Ctrl + Shift + F8View Breakpoints

Version Control (4)

ShortcutAction
Alt + `VCS Operations Popup
Ctrl + KCommit
Ctrl + TUpdate Project
Alt + Shift + CView Recent Changes

Multiple Carets (3)

ShortcutAction
Ctrl + Alt + Shift + JSelect All Occurrences
Alt + JSelect Next Occurrence
Alt + Shift + JUnselect Occurrence
📄 View Printable Cheat Sheet — Download as PDF or print · 🧩 Combine with other tools

Related Shortcut Pages

IntelliJ IDEA PhpStorm PyCharm VS Code Visual Studio JetBrains Rider

Search 18,500+ shortcuts across 268 platforms

Explore All Platforms Practice Shortcuts
📜 Every shortcut on this page is taken from the official WebStorm documentation — resources.jetbrains.com
🔧 Spotted an error or a missing shortcut? Suggest an edit on GitHub — every accepted fix goes live on this page, the API and the CLI.

Navigating a JS/TS project

Ctrl + Shift + N opens any file, including files in node_modules, and exported symbols have their own finder (Ctrl + Alt + Shift + N). Using Ctrl + B on an import goes to the module's source, or to its .d.ts when only types are available; implementations of an interface are listed by Ctrl + Alt + B. Ctrl + F12 shows the file structure — components, hooks, exports — as a popup, and Ctrl + Shift + M jumps to the matching brace, which is useful in deeply nested JSX. Ctrl + Shift + I peeks at a definition without leaving the file.

Editing with several carets

With Alt + J each press adds a caret at the following occurrence of the word, Alt + Shift + J drops the last one, and Ctrl + Alt + Shift + J selects all occurrences at once — the equivalent of Ctrl + D and Ctrl + Shift + L in VS Code. Ctrl + W extends the selection by syntax (attribute, tag, element, block) and Ctrl + Shift + W shrinks it. Ctrl + J inserts a live template; wrapping a selection in a JSX fragment or an arrow function is Ctrl + Alt + T. Ctrl + Alt + L reformats using the project's Prettier or ESLint configuration when those are enabled.

Running, tests and npm

Alt + F11 lists the npm scripts from package.json so one can be run without a terminal, and Ctrl + Shift + F10 runs the test or file under the cursor with Jest or Vitest. Alt + Shift + R reruns the last test set. The debugger works for Node and for browser code through the JavaScript debugger: Shift + F9 starts it, F8 and F7 step, Shift + F7 smart-steps into one of several calls on a line, and Alt + F8 evaluates an expression. Alt + ` opens the VCS popup and Ctrl + K commits.

Frequently asked questions

Do WebStorm shortcuts match VS Code?

No, but Settings › Keymap includes a VS Code keymap. The default is the JetBrains keymap shared with IntelliJ and PyCharm.

How do I select all occurrences of a variable?

Ctrl + Alt + Shift + J selects every occurrence; Alt + J adds them one at a time.

How do I run an npm script?

Alt + F11 opens the npm tasks popup listing the scripts in package.json; choose one and press Enter.

How do I run a single Jest test?

Put the cursor inside the test and press Ctrl + Shift + F10. WebStorm creates a run configuration for just that test.

🤖 Ask AI about WebStorm shortcuts

Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"

ChatGPT Claude Perplexity Gemini Grok