Split selection into rows in PHPStorm

In Sublime, I really liked the shortcut "Split selection to lines" (super + shift + l). However, I cannot find the equivalent of this in PHP Storm 8, I found the Split to Lines function in the Edit menu, but feeding it either \ n or \ r does not seem to work. Does this feature exist in PS?

+6
source share
3 answers

Another option is to use column selection mode:

fooobar.com/questions/93540 / ...

+6
source

If I have a choice of 200 lines, I do not want to create a cursor at the end of each line.

You do not need to β€œcreate a cursor at the end of each line” - just create a cursor at the beginning of each line (on Windows it will be Alt + Mouse drag Down / Up ), and then just click the End button. This is not as simple as a separate dedicated action ... but it still does the same job and is pretty easy to complete.


In any case: there is no such exact action currently available in PhpStorm.

Please follow this ticket (star / voice / comment) to receive progress notification: http://youtrack.jetbrains.com/issue/IDEA-122181

+2
source

By default in PHPStorm 10+, you can switch the column selection mode with:

CMD + SHIFT + 8

Of course, you can customize any stroke you like. I like to keep the original and add one that matches Sublime, which is CMD + SHIFT + L. Here's how:

How to set the column selection mode selection mode in PHPStorm

+1
source

Source: https://habr.com/ru/post/971359/


All Articles