visual-studio-code

VS Code - can I turn a block selection into a column selection?


In VS Code, let's say I have three lines selected:

block selection

Is there a way to convert that to a column select?

column selection

This would be an extremely handy shortcut for me because I use Space Block Jumper to easily select blocks of text with a single keyboard shortcut, and quite often I find a similar need to edit a block of text column-wise.


Solution

  • The only solution I know is AltShiftI Add Cursors to Line Ends, that gives you the cursors but without the selection.

    You can then do ShiftHome to select the lines, or just Home to have the cursors at the beginning of each line like in your second screenshot.