Is it possible to mark multiple lines in PhpStorm?
e.g.
LineA
LineB
LineC
lets say I try to mark LineA and LineC to copy paste them to another place, is this possible?
LineA
LineC
Is it possible to mark multiple lines in PhpStorm?
e.g.
LineA
LineB
LineC
lets say I try to mark LineA and LineC to copy paste them to another place, is this possible?
LineA
LineC
Use multiple cursors. The keyboard shortcuts may vary (those described in the documentation do not work for me on Linux).
Explore clicking around the text while various combinations of the Ctrl
, Alt
and Shift
keys are pressed. On macOS also try Cmd
. One of them allows you to place multiple carets in the text (f.e. at the beginning of the lines you want to copy).
After you placed all the carets you need use Shift
and the arrows to extend the selection. Use Copy
and Paste
as usual. Use Escape
or click anywhere in the text to deselect and go back to the regular, single-caret, status.
Sure .. but it requires a bit of "precision pointing" and using mouse (not sure if it's easily doable with keyboard only).
Basically -- the idea is to use Multiple Carets functionality:
Line A
and Line C