WebStorm as a keyboard-centric IDE suggests a wide variety of keyboard shortcuts. In this topic you can find a short list of the most indispensable of them, to make your first steps with WebStorm easy.
See the detailed list of default keyboard shortcuts in the Keyboard Shortcuts Reference and learn how to customize your preferred keymap in the section Configuring Keyboard Shortcuts.
| Shortcut | Description |
|---|---|
| Alt+F1Alt+F1 | Switch between views (Project, Structure, etc.). |
| NextSplitterAlt Tab | Switch between the tool windows and files opened in the editor. |
| Alt+HomeAlt+Home | Show the Navigation bar. |
| Ctrl+JCtrl+J | Insert a live template. |
| Ctrl+Alt+JCtrl+Alt+J | Surround with a live template. |
| F4F4 | Edit an item from the Project or another tree view. |
| Alt+EnterAlt+Enter | Use the suggested quick fix. |
| Ctrl+Slash; Ctrl+DivideCtrl+Slash; Ctrl+Divide Ctrl+Shift+Slash; Ctrl+Shift+DivideCommand Shift Slash; Command Shift Divide; Command Shift Slash; Command Shift Divide | Comment or uncomment a line or fragment of code with the line or block comment. |
| Ctrl+NCtrl+N Ctrl+Shift+NCtrl+Shift+N | Find class or file by name. |
| Ctrl+DCtrl+D | Duplicate the current line or selection. |
| Ctrl+WCtrl+W and Ctrl+Shift+WCtrl+Shift+W | Incremental expression selection. |
| Ctrl+F; Alt+F3Ctrl+F; Alt+F3 | Find text string in the current file. |
| Ctrl+Shift+FCommand Shift F | Find in the current folder. |
| Ctrl+Shift+F7Ctrl+Shift+F7 | Quick view the usages of the selected symbol. |
| Ctrl+Add; Ctrl+EqualsCtrl+Add; Ctrl+Equals Ctrl+Subtract; Ctrl+MinusCtrl+Subtract; Ctrl+Minus | Expand or collapse a code block. |
| Ctrl+SpaceCommand Space | Invoke code completion. |