Editing Code with Multiple Cursors

How to use multiple cursors to code faster.

Ekaterina Ryabukha
editing   

Multi-cursor selection in WebStorm:

  • Select next occurrence of the current word or selection: ^G (macOS) / Alt+J (Windows/Linux).
  • Select all occurrences: ⌘⌃G (macOS) / Ctrl+Alt+Shift+J (Windows/Linux).
  • To add or remove multiple carets, you can also press and hold the (macOS) / Alt (Windows/Linux), then click to add a new caret. You can also make a multiple selection by holding Shift+Alt and dragging the caret.
  • To remove all the carets, press (macOS) / Escape (Windows/Linux).
  • See Also

    Related Resources

    Grammar Checking with Grazie
    Use Grazie to check grammar in regular text.
    Test Regular Expressions in the IDE
    WebStorm helps test regular expressions on the fly.
    Create New Files and Folders
    Use the New popup to add files and folders faster.