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?
The function is called: Create multiple cursor from selected lines
multiOr press Shift+Alt+I
Note: Cursors will be at end of lines. Press Home to send them at beginning of lines.
HomeShift-Alt-I then Home, and whatever is equivalent on your Mac. I'd add that Home comment to the answer, I think it adds value.Home was helpful too.you are referencing two different things in your question
split_selection_into_lines and the more "usual" expand_selection
| Name in ST* | ST keybinding | vscode keybinding | Name in vscode* | |
|---|---|---|---|---|
| "usual" | expand_selection to line | Ctrl + L | Ctrl + L | Expand Line Selection |
| "advanced" | split_selection_into_lines | Ctrl + Shift + L | Shift + Alt + i | Add Cursors to Line Ends |
Name in ST: name in Sublime Text keymap (click preferences > keybindings)
Name in vscode: name in VS Code Keyboard Shortcuts menu (search shortcuts from the command palette)
"usual" because it available from the Sublime Text Selection menu.
"advanced" because apart from Bart Simpson we aren't much using this :)