10 WebStorm Shortcuts You Need to Know

When using most software, people feel productive when they can get the most common tasks done really quickly. Keyboard shortcuts go a long way in doing that and saving your time. WebStorm has a shortcut for almost every action. Today we’d like to share with you 10 essential shortcuts that everyone should try.

All the key combinations used here are from the Default keymap for Windows and Linux and from the default Mac OS X 10.5+ keymap for Mac. You can easily customize your keymap configuration in Preferences | Keymap.

Search everywhere: Shift+Shift

As the name suggests, the Search everywhere popup allows you to search for anything in your project, as well as in the IDE itself.

You can search for files, symbols, functions, variables, classes or components in your code and quickly navigate to them:


You can search for actions and run them:


You can also search through the IDE settings, and even enable or disable some of the options right from the popup:


Navigate to declaration: Ctrl+B (⌘B) or Ctrl+Click (⌘-Click)

You can instantly jump to the function or method definition or a variable, class, component, or CSS style declaration: just Ctrl-click on it, or place the caret on it and press Ctrl+B. This shortcut can also help you jump to the referenced file or imported module:


If WebStorm finds more than one possible declaration of a function, you’ll be prompted to select one from the drop-down list.

Code completion with replace: Tab

As you start typing something in WebStorm, a code completion popup automatically appears to provide coding assistance. The natural thing to do is press Enter to select one of the offered suggestions. However, if you need to replace one function with another or change a CSS class, press Tab, and the current element will be replaced with the selected lookup item:


Show intention actions: Alt+Enter or ⌥-Enter

WebStorm has a great number of intentions to help you quickly apply fixes, generate code, or change some project settings. Place the caret on highlighted or underlined code, and press Alt+Enter to see the list of available intention actions. For example:


Don’t want to see a particular warning anymore? Select Suppress to disable the inspection for a certain line of code or file, or even Disable it for the whole project:


Extend selection: Ctrl+W or ⌥-Up Arrow

With the Extend selection action, you can quickly select any block of code without using the mouse:


Run… : Alt+Shift+F10 or ⌃⌥R

The fastest way to run one of your project’s Run configurations it to press Alt+Shift+F10 on Windows or Ctrl-Alt-R on Mac and select one of the configurations from the popup:


Tip: Hold Shift and press Enter to Debug the configuration instead of running it.

Expand Live template: Tab

Live templates are real timesavers. Type a short abbreviation and then press Tab to expand it into code! Jump from one placeholder for a variable to another in the template by pressing Tab once again.

WebStorm comes with a large collection of Live templates, including Postfix templates. You can also add your custom templates.


WebStorm also supports Emmet abbreviations for HTML and CSS. You can also expand them with Tab.

Multiple cursors: Alt+Click

Everyone’s favorite multiple cursors feature is available in WebStorm too. Place the cursors with Alt+Click and then edit these locations simultaneously:


New Scratch file: Ctrl+Alt+Shift+Insert or ⇧⌘N

With Scratch files, you can quickly create code samples or make some notes while working in the IDE — without affecting your project files, but still enjoying the coding assistance. Scratch files are saved inside the IDE and can be accessed from any project:


Refactor this: Alt+Control+Shift+T or ⌃T

WebStorm is known for its refactorings. To quickly access the list of available refactorings for the selected code, press Alt+Control+Shift+T or Ctrl-T:


Learning more shortcuts

To browse through the list of the default shortcuts, access the Keymap reference: in the IDE via Help | Default keymap reference, or on the website.

Another way is to browse through the keymap configuration in Preferences | Keymap. While there, you can search by action name or by shortcut:



Alternatively, start typing an action name in the Search everywhere popup, and you’ll see some matching shortcuts.

Also you can also try Visual Shortcut Mapper with the WebStorm default keymap available.

We do hope these shortcuts save you some valuable time. What’s your favorite one? Share in the comments below!

WebStorm Team

About Ekaterina Prigara

Ekaterina Prigara is WebStorm product marketing manager at JetBrains. She's passionate about new technologies, UX and coffee.
This entry was posted in Tutorials and tagged . Bookmark the permalink.

35 Responses to 10 WebStorm Shortcuts You Need to Know

  1. SylvainPV says:

    Thanks, I did not know about scratch files. Is it possible to add them as an option in the File/New… menu ?

  2. YoYurec says:

    > Learning more shortcuts
    > …
    or just use KeyPromoter B-)

  3. Sergey says:

    One very useful shortcut about which I learned from one of the webinar videos is alt + / & alt + shift + / – cyclic expand word forward / backward, so you can start typing a word or a letter (or even abbreviation) and pressing on alt + / will start giving you completions based on words above / below the caret (will search in open files).

  4. Psenger says:

    These are nice, but I would really like to see more / better support for NodeJS and support for NPM scripts would also be nice.. we have removed all of our workflow and replaced it with NPM scripts.

  5. Avinash Jadhao says:

    Hi Ekaterina,
    Thanks for the nice shortcuts tutorial. I have one query: Using CTRL+B, we go to the definition of that symbol. How to get back to the place, where I pressed CTRL+B?

  6. NamTran says:

    in html, when I want to go to next line by hitting enter or shift+enter, the cursor is always at the beginning position and I have press tab to reach the same position as previous line, I want it’s at the same level as previous line, how can I customize that?
    (sorry that I’m not good at english)

  7. Chris says:

    When I start WebStorm and I get the last edited project opened, I get get all the code, next to the number of the line code, with “-” sign, and I have to scroll all the way down to search my code for some specific part of the website.

    My question is, if I wrap the code to have on “+” signs, how can I do to keep that when I open the project next time ?


    • Ekaterina Prigara says:

      WebStorm stores all the information about code folding in the project in .idea/workspace.xml file in the project root. Please make sure you don’t delete this file after you close the project.

  8. chiru says:

    what shortcut we can put comments in wenstorm !!!!!!!!!!!

    • Ekaterina Prigara says:

      You can comment code with cmd-/ on macOS and ctrl-/ on Windows and Linux. You can see the shortcut for the action you’re interested in in Preferences | Keymap.

  9. jdat82 says:

    Cool. I learned a new trick. Love this IDE.

  10. LK says:

    Great, Learned a lot! thanks :-)

  11. サイ says:

    Thank you so much.

  12. sadra says:


  13. Nice article Ekaterina thanks :)

    If we use code-completion, sometimes we will finish editing that line before the cursor actually reaches the end of the line. For example:

    console.log(‘My editing of this line will be finished before this single-quote ->’)

    In this case, the cursor will be at the end of ->

    If I now want to move to the next line, I can press Shift-Enter.

    My question is, how can I do this and have Webstorm automagically terminate that line with a semi-colon?


  14. Eko Wibowo says:


    SHIFT SHIFT is the blue key that I seek all this years!


  15. Riyaz Khan says:

    The SHIFT SHIFT, is the most imp key I am using and its the one that makes my productivity fast.

    Thanks JetBrains.

  16. Page says:

    Thanks :) Great presentation. I love WebStorm!

  17. Ivan says:

    Thank you! I love JetBrains & WebStorm!

Leave a Reply to Ekaterina Prigara Cancel reply

Your email address will not be published. Required fields are marked *