WebStorm is JetBrains' JavaScript and TypeScript IDE — the full JetBrains shortcut platform, tuned for front-end work with npm, frameworks and JSX/TSX. This complete list of WebStorm keyboard shortcut keys (Windows/Linux keymap) explains navigation, JS/TS editing, running and debugging in plain words.
Search and Navigation Shortcuts
| Shortcut Key | Function |
|---|---|
| Shift, Shift (double Shift) | Search Everywhere (files, components, symbols, actions) |
| Ctrl + Shift + A | Find Action |
| Ctrl + N | Go to Class (components and classes) |
| Ctrl + Shift + N | Go to File |
| Ctrl + Alt + Shift + N | Go to Symbol (functions, variables, exports) |
| Ctrl + E | Recent Files popup |
| Ctrl + B | Go to Declaration (of a component, function or import) |
| Ctrl + Alt + B | Go to Implementation |
| Ctrl + Alt + Left / Right | Navigate back / forward |
| Ctrl + G | Go to a line number |
| Ctrl + F12 | File Structure popup |
| Alt + F7 | Find Usages |
| Alt + Up / Down Arrow | Previous / next function or method |
| Ctrl + [ / ] | Move to the block start / end |
| Ctrl + Tab | Switcher between files and tool windows |
| Alt + F1 | Select the current file in a view (Project, structure…) |
JavaScript / TypeScript Editing Shortcuts
| Shortcut Key | Function |
|---|---|
| Ctrl + Space | Code completion |
| Ctrl + Shift + Space | Smart completion |
| Ctrl + Shift + Enter | Complete the statement |
| Alt + Enter | Show intention actions (import a component, fix a lint error, convert to async…) |
| Ctrl + P | Parameter info |
| Ctrl + Q | Quick documentation (JSDoc/TSDoc) |
| Ctrl + / | Comment with // (line comment) |
| Ctrl + Shift + / | Comment with a /* */ block comment |
| Ctrl + D | Duplicate the line or selection |
| Ctrl + Y | Delete the line |
| Ctrl + W / Ctrl + Shift + W | Extend / shrink the selection |
| Shift + F6 | Rename (component, prop, variable — including JSX tags and imports) |
| Ctrl + Alt + Shift + T | Refactor This menu |
| Ctrl + Alt + M | Extract Method/Function |
| Ctrl + Alt + V | Extract Variable (const) |
| Ctrl + Alt + P | Extract Parameter |
| Ctrl + Alt + N | Inline |
| Ctrl + Alt + L | Reformat code (Prettier if configured) |
| Ctrl + Alt + O | Optimize imports (sort and drop unused) |
| Ctrl + Shift + J | Join lines |
| Ctrl + Shift + U | Toggle case |
| Alt + Shift + click | Add carets / column editing |
Run, Debug and Tools Shortcuts
| Shortcut Key | Function |
|---|---|
| Shift + F10 | Run the selected configuration (npm script, Node app, test) |
| Shift + F9 | Debug the selected configuration |
| Ctrl + Shift + F10 | Run the current context (the test or file under the caret) |
| Alt + Shift + F10 / F9 | Choose a configuration to run / debug |
| Ctrl + F5 | Rerun |
| Ctrl + F2 | Stop |
| Alt + F12 | Open the Terminal |
| F8 / F7 / Shift + F8 | Step over / into / out (debugging) |
| Alt + F9 | Run to the cursor |
| Alt + F8 | Evaluate an expression |
| F9 | Resume |
| Ctrl + F8 | Toggle a breakpoint |
| Ctrl + Shift + F8 | View breakpoints |
| Ctrl + F | Find in the file |
| Ctrl + R | Replace in the file |
| Ctrl + Shift + F / R | Find / Replace in Path |
| Ctrl + K | Commit (Git) |
| Ctrl + T | Update from Git |
| Ctrl + Shift + K | Push |
| Alt + ` (accent) | Git/VCS operations popup |
| Ctrl + Alt + S | Open Settings |
| Ctrl + Shift + F12 | Maximize the editor |
| Esc | Focus the editor |
Tips for WebStorm Users
Alt + Enter is the front-end fixer: it imports components, repairs ESLint/TS errors and converts functions — press it on every red squiggle before Googling. Rename (Shift + F6) understands JSX: renaming a component rewrites its tags and import statements across the project. And when code style fights start, Ctrl + Alt + L with Prettier configured ends them — one chord and the whole file matches the team's format.
Frequently Asked Questions
How do I auto-import a component in WebStorm?
Put the caret on the unresolved component name and press Alt + Enter, then choose the import action — WebStorm adds the correct import statement.
How do I run an npm script in WebStorm?
Create or open the npm run configuration and press Shift + F10, or right-click the script in package.json and run it once so it becomes the active configuration.
How do I format code with Prettier in WebStorm?
Configure Prettier in Settings (Languages & Frameworks → JavaScript → Prettier), then press Ctrl + Alt + L to reformat the file with it.
How do I rename a React component everywhere?
Press Shift + F6 on the component name — WebStorm renames the definition, all JSX usages, imports and file references consistently.
By Umar Farooq, Tech Know.
0 Comments