BeyondStupidQuestions
BeyondStupidQuestions

Reputation: 33

VSCode move selection of multiple lines up and down

I am trying to get used to VSCode because of dendron and I am friend of learning defaults because I work on too many installs to maintain custom settings.

Is there any equivalent in VSCode to sublime text multiline movement?

I have attached a GIF to show what I mean because I can't seem to find the right google keywords or everyone else means something else than me with saying move multiple cursor lines vertically.

In ST I can move them after selecting them with a cursor via SHIFT + CTRL + Up/Down

GIF of st3 multi line movement

EDIT: Found it. Sublime Text 3 can move blocks by cursor, vscode can't. It only moves by selection. Which ironically work with a single line cursor though.

Upvotes: 1

Views: 2344

Answers (1)

Abhishek Pratap Singh
Abhishek Pratap Singh

Reputation: 761

Select all lines which you want to move up/down then Alt + (arrow key up/ arrow key down ) to move your piece of code up or down.

Upvotes: 4

Related Questions