Skip to content

WebStorm

Comprehensive WebStorm shortcuts and workflows for JavaScript, TypeScript, React, Vue, and Node.js development.

General Shortcuts

Windows/LinuxmacOSDescription
Ctrl+Shift+ACmd+Shift+AFind Action
Ctrl+Shift+NCmd+Shift+OGo to File
Ctrl+NCmd+OGo to Class
Ctrl+Shift+Alt+NCmd+Option+OGo to Symbol
Ctrl+ECmd+ERecent Files
Ctrl+Shift+ECmd+Shift+ERecent Locations
Ctrl+GCmd+LGo to Line
Ctrl+F12Cmd+F12File Structure
Alt+F1Option+F1Select In
Windows/LinuxmacOSDescription
Ctrl+BCmd+BGo to Declaration
Ctrl+Alt+BCmd+Option+BGo to Implementation
Ctrl+Shift+BCmd+Shift+BGo to Type Declaration
Ctrl+UCmd+UGo to Super Method
Alt+F7Option+F7Find Usages
Ctrl+F7Cmd+F7Find Usages in File
Ctrl+Shift+F7Cmd+Shift+F7Highlight Usages
Ctrl+Alt+F7Cmd+Option+F7Show Usages
Ctrl+ClickCmd+ClickGo to Declaration

Editing

Windows/LinuxmacOSDescription
Ctrl+SpaceCtrl+SpaceBasic Code Completion
Ctrl+Shift+SpaceCtrl+Shift+SpaceSmart Code Completion
Ctrl+Alt+SpaceCtrl+Option+SpaceClass Name Completion
Ctrl+Shift+EnterCmd+Shift+EnterComplete Current Statement
Ctrl+PCmd+PParameter Info
Ctrl+QCtrl+JQuick Documentation
Shift+F1Shift+F1External Documentation
Ctrl+F1Cmd+F1Show Error Description
Alt+InsertCmd+NGenerate Code
Ctrl+OCtrl+OOverride Methods

Code Formatting

Windows/LinuxmacOSDescription
Ctrl+Alt+LCmd+Option+LReformat Code
Ctrl+Alt+OCtrl+Option+OOptimize Imports
Ctrl+Alt+ICtrl+Option+IAuto-Indent Lines
TabTabIndent Selection
Shift+TabShift+TabUnindent Selection
Ctrl+Alt+TCmd+Option+TSurround With
Ctrl+/Cmd+/Comment/Uncomment Line
Ctrl+Shift+/Cmd+Shift+/Comment/Uncomment Block

Refactoring

Windows/LinuxmacOSDescription
F5F5Copy
F6F6Move
Shift+F6Shift+F6Rename
Ctrl+F6Cmd+F6Change Signature
Ctrl+Alt+NCmd+Option+NInline
Ctrl+Alt+MCmd+Option+MExtract Method
Ctrl+Alt+VCmd+Option+VExtract Variable
Ctrl+Alt+FCmd+Option+FExtract Field
Ctrl+Alt+CCmd+Option+CExtract Constant
Ctrl+Alt+PCmd+Option+PExtract Parameter

Running and Debugging

Windows/LinuxmacOSDescription
Shift+F10Ctrl+RRun
Shift+F9Ctrl+DDebug
Ctrl+Shift+F10Ctrl+Shift+RRun Context Configuration
Ctrl+Shift+F9Ctrl+Shift+DDebug Context Configuration
F8F8Step Over
F7F7Step Into
Shift+F7Shift+F7Smart Step Into
Shift+F8Shift+F8Step Out
Alt+F9Option+F9Run to Cursor
Alt+F8Option+F8Evaluate Expression

JavaScript/TypeScript Specific

Windows/LinuxmacOSDescription
Ctrl+Shift+F10Ctrl+Shift+RRun JavaScript File
Alt+Shift+F10Option+Shift+RRun Node.js
Ctrl+Shift+ICmd+Shift+IAuto Import
Ctrl+Alt+Shift+TCmd+Option+Shift+TRefactor This
F2F2Next Highlighted Error
Shift+F2Shift+F2Previous Highlighted Error

React Development

Windows/LinuxmacOSDescription
Ctrl+JCmd+JInsert Live Template
Ctrl+Alt+JCmd+Option+JSurround with Live Template
Ctrl+Shift+ACmd+Shift+AFind Action (React snippets)
rcc + Tabrcc + TabReact Class Component
rfc + Tabrfc + TabReact Function Component
useState + TabuseState + TabuseState Hook
useEffect + TabuseEffect + TabuseEffect Hook

Vue.js Development

Windows/LinuxmacOSDescription
vue + Tabvue + TabVue Component Template
vdata + Tabvdata + TabVue Data Function
vmethod + Tabvmethod + TabVue Method
vcomputed + Tabvcomputed + TabVue Computed Property
vwatcher + Tabvwatcher + TabVue Watcher

Node.js Development

Windows/LinuxmacOSDescription
Ctrl+Shift+F10Ctrl+Shift+RRun Node.js File
Alt+F12Option+F12Terminal
Ctrl+Shift+XCmd+Shift+XRun npm Script
Ctrl+Alt+F12Cmd+Option+F12Node.js Console

Testing

Windows/LinuxmacOSDescription
Ctrl+Shift+F10Ctrl+Shift+RRun Test
Ctrl+Shift+F9Ctrl+Shift+DDebug Test
Alt+Shift+F10Option+Shift+RRun All Tests
Ctrl+Alt+F6Cmd+Option+F6Run Failed Tests

Version Control (Git)

Windows/LinuxmacOSDescription
Ctrl+KCmd+KCommit
Ctrl+Shift+KCmd+Shift+KPush
Ctrl+TCmd+TUpdate Project
Alt+9Cmd+9Version Control Tool Window
Ctrl+Alt+ZCmd+Option+ZRollback

Search and Replace

Windows/LinuxmacOSDescription
Ctrl+FCmd+FFind
F3Cmd+GFind Next
Shift+F3Cmd+Shift+GFind Previous
Ctrl+RCmd+RReplace
Ctrl+Shift+FCmd+Shift+FFind in Path
Ctrl+Shift+RCmd+Shift+RReplace in Path

Tool Windows

Windows/LinuxmacOSDescription
Alt+1Cmd+1Project Tool Window
Alt+2Cmd+2Favorites
Alt+3Cmd+3Find Tool Window
Alt+4Cmd+4Run Tool Window
Alt+5Cmd+5Debug Tool Window
Alt+6Cmd+6TODO Tool Window
Alt+7Cmd+7Structure Tool Window
Alt+8Cmd+8Services Tool Window
Alt+9Cmd+9Version Control
Alt+0Cmd+0Messages Tool Window

Best Practices

Project Setup

  1. Configure Node.js: File → Settings → Languages & Frameworks → Node.js
  2. Enable TypeScript: File → Settings → Languages & Frameworks → TypeScript
  3. Set Code Style: File → Settings → Editor → Code Style → JavaScript/TypeScript

React Development

  1. Install React Plugin: File → Settings → Plugins → React
  2. Configure JSX: File → Settings → Languages & Frameworks → JavaScript → React JSX
  3. Enable ES6: File → Settings → Languages & Frameworks → JavaScript → ECMAScript 6+

Debugging Tips

  1. Browser Debugging: Use built-in Chrome DevTools integration
  2. Node.js Debugging: Configure Node.js run configurations
  3. Source Maps: Enable source map support for debugging transpiled code

Performance Optimization

  1. Exclude Folders: Mark node_modules as excluded
  2. Power Save Mode: Enable for better battery life
  3. Memory Settings: Increase heap size for large projects