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

Roberto picture Roberto · Dec 24, 2010 · Viewed 60.9k times · Source

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?

Answer

Kevin Aenmey picture Kevin Aenmey · Sep 26, 2012

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.