6

In Atom, you are able to select multiple lines then hit Command + Shift + L followed by the left arrow key or the right arrow key to put multiple cursors at the beginning or end of each selected line.

When trying to do the same command in VS Code it doesn't work? How can I achieve the same behavior in VS Code?

Atom Multicursor Lines

Penny Liu
  • 15,447
  • 5
  • 79
  • 98
Charlie Fish
  • 18,491
  • 19
  • 86
  • 179
  • 3
    Does this answer your question? [Multiline editing in Visual Studio Code](https://stackoverflow.com/questions/30037808/multiline-editing-in-visual-studio-code) – Ben Butterworth Apr 12 '20 at 19:45

1 Answers1

19

Shift+Alt+I will put cursors on each line end.

For the beginnings, I guess you can just Ctrl+Alt+Down at the beginning to add more cursors.

  • 2
    Just hit `Home` after the `Shift+Alt+I`. You could also look at `Column Selection Mode` or `Ctrl+Alt+Downarrow` (Add cursor below) after putting the cursor on the top line where you want it is probably the easiest. – Mark Apr 12 '20 at 19:52
  • Press CTRL + A to select all of the text Press SHIFT + ALT + I to insert multiple cursors at the end of each line Press Home twice to jump to the start of every line – Hrishikesh Baidya Aug 26 '20 at 06:41