Move line Up/Down shortcut in Visual Studio 2012

后端 未结 9 1658
广开言路
广开言路 2021-01-30 15:59

In VS2010 I had a shortcut set up Alt+Up/Down to move lines of code up or down, just like I used to have in Eclipse in my Java days.

Now since Powe

9条回答
  •  被撕碎了的回忆
    2021-01-30 16:10

    Shift+Del and then Ctrl+V

    Shift+Del does the cut (same as Ctrl+X) operation on the current line on which cursor is positioned.

    Then you can use Ctrl+V to paste it at any place you like.

    Good thing is that you don't need to select the complete current line, just the cursor needs to be positioned on the line.

    One downside to using this shortcut is that you won't be able to see the line moving ( up or down ) lively in front of your eyes.

提交回复
热议问题