---
title: WebStorm
date: 2020-12-17 21:51:44
background: bg-gradient-to-r from-indigo-300 to-blue-400 hover:from-indigo-400 hover:to-blue-500
tags:
  - jetbrains
  - web
  - shortcut
categories:
  - Keyboard Shortcuts
intro: |
  This quick reference cheat sheet lists the default keyboard shortcuts for WebStorm running on Windows/Linux or Mac
---

## Webstorm Windows & Linux Keymap

### Editing {.row-span-5}

| shortcut             | description                                     |
| -------------------- | ----------------------------------------------- |
| `Ctrl` `Space`       | Basic code completion                           |
| `Alt` `Enter`        | Show intention actions, quick fixes             |
| `Ctrl` `P`           | Parameter info                                  |
| `Ctrl` `Q`           | Quick documentation lookup                      |
| `Ctrl` `mouse over`  | Brief Info                                      |
| `Ctrl` `F1`          | Error or warning at caret                       |
| `Alt` `Insert`       | Generate code...                                |
| `Ctrl` `Alt` `T`     | Surround with...                                |
| `Ctrl` `J`           | Insert Live template                            |
| `Ctrl` `/`           | Comment/uncomment with line                     |
| `Ctrl` `Shift` `/`   | Comment/uncomment with block                    |
| `Ctrl` `W`           | Select successively increasing code blocks      |
| `Ctrl` `Shift` `W`   | Decrease current selection to previous state    |
| `Alt+Q`              | Context Info                                    |
| `Ctrl` `Alt` `L`     | Reformat code                                   |
| `Ctrl` `Alt` `I`     | Auto-indent line(s)                             |
| `Tab`                | Indent selected lines                           |
| `Shift` `Tab`        | Unindent selected lines                         |
| `Ctrl` `Shift` `V`   | Paste from recent buffers...                    |
| `Ctrl` `D`           | Duplicate current line or selected block        |
| `Ctrl` `Y`           | Delete line at caret                            |
| `Alt` `Shift` `Up`   | Move line up                                    |
| `Alt` `Shift` `Down` | Move line down                                  |
| `Ctrl` `Shift` `J`   | Join lines                                      |
| `Ctrl` `Enter`       | Split lines                                     |
| `Shift` `Enter`      | Start new line                                  |
| `Ctrl` `Shift` `U`   | Toggle case for word at caret or selected block |
| `Ctrl` `Shift` `]`   | Select till code block end                      |
| `Ctrl` `Shift` `[`   | Select till code block start                    |
| `Ctrl` `Delete`      | Delete to word end                              |
| `Ctrl` `Backspace`   | Delete to word start                            |
| `Ctrl` `+`           | Expand code block                               |
| `Ctrl` `-`           | Collapse code block                             |
| `Ctrl` `Shift` `+`   | Expand all                                      |
| `Ctrl` `Shift` `-`   | Collapse all                                    |
| `Ctrl` `F4`          | Close active editor tab                         |

{.shortcuts}

### General

| shortcut             | description                    |
| -------------------- | ------------------------------ |
| `Double Shift`       | Search everywhere              |
| `Ctrl` `Shift` `A`   | Find Action                    |
| `Alt` `0...9`        | Open corresponding tool window |
| `Ctrl` `Shift` `F12` | Toggle maximizing editor       |
| `Alt` `Shift` `F`    | Add to Favorites               |
| `Alt` `Shift` `I`    | Inspect current file           |
| `Ctrl` <kbd>\`</kbd> | Quick switch current scheme    |
| `Ctrl` `Alt` `S`     | Open Settings dialog           |
| `Ctrl` `Tab`         | Switch between tool and tabs   |

{.shortcuts}

### Navigation {.row-span-4}

| shortcut                       | description                               |
| ------------------------------ | ----------------------------------------- |
| `Ctrl` `B` _\|_ `Ctrl + Click` | Go to declaration                         |
| `Ctrl` `N`                     | Go to class                               |
| `Ctrl` `Shift` `N`             | Go to file                                |
| `Ctrl` `Alt` `Shift` `N`       | Go to symbol                              |
| `Alt` `Right`                  | Go to next editor tab                     |
| `Alt` `Left`                   | Go to previous editor tab                 |
| `F12`                          | Go back to previous tool window           |
| `Esc`                          | Go to editor                              |
| `Ctrl` `G`                     | Go to line                                |
| `Ctrl` `E`                     | Recent files popup                        |
| `Ctrl` `Alt` `Right`           | Navigate forward                          |
| `Ctrl` `Alt` `Left`            | Navigate back                             |
| `Ctrl` `Shift` `Backspace`     | Navigate to last edit location            |
| `Alt` `F1`                     | Select current file or symbol in any view |
| `Ctrl` `Alt` `B`               | Go to implementation(s)                   |
| `Ctrl` `Shift` `I`             | Open quick definition lookup              |
| `Ctrl` `Shift` `B`             | Go to type declaration                    |
| `Ctrl` `U`                     | Go to super-method/super-class            |
| `Alt` `Up`                     | Go to previous method                     |
| `Alt` `Down`                   | Go to next method                         |
| `Ctrl` `]` _/_ `[`             | Move to code block end/start              |
| `Cltrl` `Shift` `M`            | Move caret to matching brace              |
| `Ctrl` `F12`                   | File structure popup                      |
| `Ctrl` `H`                     | Type hierarchy                            |
| `Ctrl` `Alt` `H`               | Call hierarchy                            |
| `F2` _/_ `Shift` `F2`          | Next/previous highlighted error           |
| `F4` _/_ `Ctrl` `Enter`        | Jump to source                            |
| `Alt` `Home`                   | Jump to navigation bar                    |
| `F11`                          | Toggle bookmark                           |
| `Ctrl` `Shift` `F11`           | Toggle bookmark with mnemonic             |
| `Ctrl` `0...9`                 | Go to numbered bookmark                   |
| `Shift` `F11`                  | Show bookmarks                            |

{.shortcuts}

### Multiple carets and selections

| shortcut               | description                        |
| ---------------------- | ---------------------------------- |
| `Alt` `Click`          | Add or remove caret                |
| `Shift` `Ctrl + Alt-J` | Select all occurrences             |
| `Alt` `J`              | Select next occurrence             |
| `Alt` `Shift` `J`      | Unselect occurrence                |
| `Esc`                  | Unselect all occurrences or carets |

{.shortcuts}

### Debugging

| shortcut            | description         |
| ------------------- | ------------------- |
| `F8`                | Step over           |
| `F7`                | Step into           |
| `Shift` `F7`        | Smart step into     |
| `Shift` `F8`        | Step out            |
| `Alt` `F9`          | Run to cursor       |
| `Alt` `F8`          | Evaluate expression |
| `F9`                | Resume program      |
| `Ctrl` `F8`         | Toggle breakpoint   |
| `Ctrl` `Shift` `F8` | View breakpoints    |

{.shortcuts}

### Running

| shortcut             | description                           |
| -------------------- | ------------------------------------- |
| `Alt` `Shift` `F10`  | Select configuration and run          |
| `Alt` `Shift` `F9`   | Select configuration and debug        |
| `Shift` `F10`        | Run                                   |
| `Shift` `F9`         | Debug                                 |
| `Ctrl` `Shift` `F10` | Run context configuration from editor |
| `Alt` `Shift` `R`    | Rerun tests                           |
| `Alt` `F11`          | Run Gulp/Grunt/npm tasks              |

{.shortcuts}

### Usage Search

| shortcut            | description              |
| ------------------- | ------------------------ |
| `Alt` `F7`          | Find usages              |
| `Ctrl` `F7`         | Find usages in file      |
| `Ctrl` `Shift` `F7` | Highlight usages in file |
| `Ctrl` `Alt` `F7`   | Show usages              |

{.shortcuts}

### VCS/Local History

| shortcut            | description             |
| ------------------- | ----------------------- |
| `Alt` <kbd>\`</kbd> | VCS quick popup         |
| `Ctrl` `K`          | Commit project to VCS   |
| `Ctrl` `T`          | Update project from VCS |
| `Alt` `Shift` `C`   | View recent changes     |

{.shortcuts}

### Search/Replace

| shortcut           | description     |
| ------------------ | --------------- |
| `Ctrl` `F`         | Find            |
| `F3`               | Find next       |
| `Shift` `F3`       | Find previous   |
| `Ctrl` `Shift` `F` | Find in path    |
| `Ctrl` `R`         | Replace         |
| `Ctrl` `Shift` `R` | Replace in path |

{.shortcuts}

### Refactoring

| shortcut                | description               |
| ----------------------- | ------------------------- |
| `Ctrl` `Alt` `Shift +T` | Refactor this             |
| `F5` _/_ `F6`           | Copy / Move               |
| `Alt` `Delete`          | Safe Delete               |
| `Shift` `F6`            | Rename                    |
| `Ctrl` `F6`             | Change function signature |
| `Ctrl` `Alt` `N`        | Inline Variable           |
| `Ctrl` `Alt` `M`        | Extract Method            |
| `Ctrl` `Alt` `V`        | Extract Variable          |
| `Ctrl` `Alt` `C`        | Extract Constant          |
| `Ctrl` `Alt` `P`        | Extract Parameter         |

{.shortcuts}
