How do I select multiple instances of text? Such as selecting all the "li" tags by highlighting one and pressing a shortcut to select the next instance and so on. Thanks
Select multiple occurrences of a word or a text range Successively press Alt+J to find and select the next occurrence of case-sensitively matching word or text range. Press Ctrl+Alt+Shift+J to select all case-sensitively matching words or text ranges in the document.
To select ranges as multiple rectangular selections, Ctrl+Alt+Shift+Click and drag the mouse over the desired parts of code. As a result, you will have multiple selection ranges in each affected document line.
Use ⌃⌘G (macOS), or Ctrl+Alt+Shift+J (Windows/Linux), to select all occurrences of the same word.
Well, you cannot. I think you're talking about the multiple cursors that are present in Sublime Text 2. But, if your text is aligned, then you can change it using the ALT + CLICK and dragging that.
You can vote for this feature as lena mentions.
This feature is now supported in Webstorm 8. If you press the ALT key and click on a different location, you will get a separate cursor there. Before, you could only drag and create cursors in the same line, however, now you can place your cursor wherever you want to.
Ctrl then Ctrl+Arrow Up
Please take a look at this video to learn more.
Now you can do it in WebStorm 8 EAP (and later builds) with Select Next Occurrence (Ctrl+G on Mac and Alt+J on Windows) - See more at: http://blog.jetbrains.com/webstorm/2014/02/webstorm-8-eap-build-134-1361-multiple-selection
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With