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 shortcutsEditing and completion
Complete code, apply context actions, format, comment, duplicate, delete, and move text in the WebStorm editor.
| Action | Windows | macOS | Linux |
|---|---|---|---|
| Show code completion | CtrlSpace | CtrlSpace | CtrlSpace |
| Show context actions | AltEnter | OptionEnter | AltEnter |
| Show parameter information | CtrlP | CmdP | CtrlP |
| Show quick documentation | CtrlQ | CtrlJ | CtrlQ |
| Extend the selection | CtrlW | OptionUp | CtrlW |
| Shrink the selection | CtrlShiftW | OptionDown | CtrlShiftW |
| Toggle a line comment | Ctrl/ | Cmd/ | Ctrl/ |
| Toggle a block comment | CtrlShift/ | OptionCmd/ | CtrlShift/ |
| Reformat code | CtrlAltL | CmdOptionL | CtrlAltL |
| Duplicate the current line or selection | CtrlD | CmdD | CtrlD |
| Delete the current line | CtrlY | CmdBackspace | CtrlY |
| Move a line or selection up | AltShiftUp | OptionShiftUp | AltShiftUp |
| Move a line or selection down | AltShiftDown | OptionShiftDown | AltShiftDown |
| Cut | CtrlX | CmdX | CtrlX |
| Copy | CtrlC | CmdC | CtrlC |
| Paste | CtrlV | CmdV | CtrlV |
| Undo | CtrlZ | CmdZ | CtrlZ |
| Redo | CtrlShiftZ | CmdShiftZ | CtrlShiftZ |
| Select all | CtrlA | CmdA | CtrlA |
| Indent the current line | Tab | Tab | Tab |
| Outdent the current line | ShiftTab | ShiftTab | ShiftTab |
Refactoring and generation
Generate code, surround statements, rename symbols, delete safely, and extract common code constructs with WebStorm's refactoring commands.
| Action | Windows | macOS | Linux |
|---|---|---|---|
| Generate code | AltInsert | CmdN | AltInsert |
| Surround with | CtrlAltT | CmdOptionT | CtrlAltT |
| Insert a live template | CtrlJ | CmdJ | CtrlJ |
| Rename a symbol | ShiftF6 | ShiftF6 | ShiftF6 |
| Safe delete | AltDelete | CmdDelete | AltDelete |
| Extract a variable | CtrlAltV | CmdOptionV | CtrlAltV |
| Extract a method | CtrlAltM | CmdOptionM | CtrlAltM |
| Extract a constant | CtrlAltC | CmdOptionC | CtrlAltC |
| Extract a field | CtrlAltF | CmdOptionF | CtrlAltF |
| Override methods | CtrlO | CtrlO | CtrlO |
| Implement methods | CtrlI | CtrlI | CtrlI |
| Go to super method or class | CtrlU | CmdU | CtrlU |
Files, tabs, and windows
Create, open, save, close, split, and switch WebStorm files, editor tabs, and tool windows.
| Action | Windows | macOS | Linux |
|---|---|---|---|
| Create a new project | CtrlAltInsert | CmdShiftN | CtrlAltInsert |
| Open a file or project | CtrlO | CmdO | CtrlO |
| Save all | CtrlS | CmdS | CtrlS |
| Close the active editor tab | CtrlF4 | CmdW | CtrlF4 |
| Reopen the last closed tab | CtrlShiftT | CmdShiftT | CtrlShiftT |
| Go to the next tab | AltRight | ShiftCmd] | AltRight |
| Go to the previous tab | AltLeft | ShiftCmd[ | AltLeft |
| Split the editor and move right | CtrlAltRight | CmdOptionRight | CtrlAltRight |
| Split the editor and move down | CtrlAltDown | CmdOptionDown | CtrlAltDown |
| Open Settings | CtrlAltS | Cmd, | CtrlAltS |
| Open the Project tool window | Alt1 | Cmd1 | Alt1 |
| Open the Terminal tool window | AltF12 | OptionF12 | AltF12 |
| Open the Services tool window | Alt8 | Cmd8 | Alt8 |
Run, debug, and version control
Run or debug configurations, step through code, manage breakpoints, and open WebStorm's version-control actions.
| Action | Windows | macOS | Linux |
|---|---|---|---|
| Run the current configuration | ShiftF10 | CtrlR | ShiftF10 |
| Debug the current configuration | ShiftF9 | CtrlD | ShiftF9 |
| Step over | F8 | F8 | F8 |
| Step into | F7 | F7 | F7 |
| Step out | ShiftF8 | ShiftF8 | ShiftF8 |
| Evaluate an expression | AltF8 | OptionF8 | AltF8 |
| Toggle a breakpoint | CtrlF8 | CmdF8 | CtrlF8 |
| Open the Run Anything menu | Double Ctrl | Double Ctrl | Double Ctrl |
| Open the VCS operations menu | Alt` | CtrlV | Alt` |
| Commit changes | CtrlK | CmdK | CtrlK |
| Update the project | CtrlT | CmdT | CtrlT |