Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

145
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda