Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

151
Views
Vscode move line above a block shortcut key

Is there any shortcut key to move a line above or below a block? This feature exists in IntelliJ editors and maybe also in visual studio.

You can use Alt+Up to move a line up one line. Is there any such shortcut key to move the line above an entire block above?


In the example below, it's to move the line a = 1; above the if block

description

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Try using Alt+Up, that works for me.

It's also on the context menu if you need it ...

Context

You can also select blocks of code and use the same shortcut to move the entire lot. This would work in your case.

about 4 years ago · Juan Pablo Isaza Report

0

There is no single command for moving current line above/below adjacent block (at this moment), but you can get pretty close by selecting and moving the block instead. Expand selection (ShiftAltRightArrow) and "normal" Move line up/down (AltUp/Down) will come handy here:

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!