Move line Up/Down shortcut in Visual Studio 2012

后端 未结 9 1656
广开言路
广开言路 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:29

    If you have Resharper, then you can hit Ctrl + Shift + Alt + to move the current line up. or Ctrl + Shift + Alt + to move one line down.

    This works in VS 2012 Premium with Visual Studio keyboard scheme in Resharper 7 (7.0.97.60 to be precise).

    Edit: This is mapped to 'ReSharper.ReSharper_MoveUp'/'MoveDown' commands.

提交回复
热议问题