Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multi-select Jetbrains Webstorm

Tags:

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

like image 866
chaggy Avatar asked Aug 24 '13 01:08

chaggy


People also ask

How do I select multiple text in Webstorm?

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.

How do I multi select in Intellij?

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.

How do I select all instances of words in Intellij?

Use ⌃⌘G (macOS), or Ctrl+Alt+Shift+J (Windows/Linux), to select all occurrences of the same word.


2 Answers

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.

UPDATE

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.

Keyboard Shortcut

Ctrl then Ctrl+Arrow Up

Please take a look at this video to learn more.

like image 68
Games Brainiac Avatar answered Nov 10 '22 13:11

Games Brainiac


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

like image 42
user3030440 Avatar answered Nov 10 '22 13:11

user3030440