Luke Miles
Luke Miles

Reputation: 1160

Move cursor to opposite side of selection in vscode?

Is there any way to move the cursor to the other side of the selected text in vscode? Like here I want to add expand my selection to include 'eiusmod' on the left, but I don't know of any shortcut or command or extension that allows it.

screenshot of cursor on text

Upvotes: 2

Views: 558

Answers (1)

rioV8
rioV8

Reputation: 28643

The extension Select By has a command selectby.swapActive

Bind it to a key of your choice or call it from the Command Palette: Swap the achor and active (cursor) position of the selection(s).

Upvotes: 2

Related Questions