magicalstar.blogg.se

Webstorm multiple cursors from selection
Webstorm multiple cursors from selection










webstorm multiple cursors from selection

In other situations, you need to stick to proper multiple cursor support. While the column selection mode is useful, it is limited to cases where places you need to edit are vertically aligned, which may not usually be the case.

webstorm multiple cursors from selection

While still holding Ctrl, you can press ↑ and ↓ arrows to clone cursor to the line above or bellow. The commands are issued by pressing Ctrl (or ⌥ on Mac), then pressing it again and not releasing. The same functionality of creating new cursors as with Shift + arrows can be achieved by Clone caret above and Clone caret bellow commands.

webstorm multiple cursors from selection

When in column selection mode and holding Shift, you can extend cursor to the line above/bellow by using ↑ or ↓ keys. You can exit column selection mode by using Esc key.Ĭolumn selection mode can be also used with keyboard only. This feature can be toggled using Edit → Column selection. Note that after I used End key (go to the end of the line), the cursor was properly placed at the end of each line even if the cursors were no longer vertically aligned. You can then move the cursor, as usual, using the arrow keys and even commands like Home or End. It allows you to select a block of text and then start typing with multiple cursors starting on each selected line at the beginning of the selected block. This feature is the oldest one, which was available even before the introduction of the proper multiple cursors support. IntelliJ IDEA supports having multiple cursors at once, meaning you can type and edit at multiple locations at the same time. Sometimes it is useful to edit multiple places in a file at once, which can save you precious time and increase your productivity.












Webstorm multiple cursors from selection