What's the equivalent for eclipse's ALT+UP/DOWN (move line) in Visual Studio?

In Eclipse, selecting a line and pressing Alt + / will move the line up and down, a quick way to avoid copy&paste. Is there an equivalent in Visual Studio?


In Visual Studio 2013 and later, this functionality is built in. ALT + UP/DOWN will move a line up or down.

If you need this functionality in VS2012 (works with VS2010 too), take a look at the MoveLine Visual Studio Extension or the Productivity Power Tools suite.


ReSharper's Ctrl + Shift + Alt + /// is even more powerful - when on the beginning of the line, it will move the entire line, but can also be used to move entire methods, change the order of parameters, etc.


For me in Visual Studio 2019 it comes default closed.

For open it:

Tools -> Options -> Keyboard then select Edit.MoveSelectedLinesUp, click "Press shortcut keys" input and press Alt + Up (or whatever you want for it). And the other one is Edit.MoveSelectedLinesDown, click "Press shortcut keys" input and press Alt + Down (or whatever you want for it).