Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code expand selection to line?

In sublime, you can select all text, and then hit Expand selection to line and a cursor will be placed on each line within the selection.

Is there an equivalent for VS Code?

like image 537
resting Avatar asked Jan 18 '26 02:01

resting


1 Answers

The function is called: Create multiple cursor from selected lines

  • Select lines
  • Press F1
  • Type multi

Or press Shift+Alt+I

Note: Cursors will be at end of lines. Press Home to send them at beginning of lines.

like image 172
Eric Bole-Feysot Avatar answered Jan 20 '26 20:01

Eric Bole-Feysot



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!