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?
Eclipse – What’s the equivalent for eclipse’s ALT+UP/DOWN (move line) in Visual Studio
eclipseidekeyboard shortcutsvisual studio
Related Topic
- C++ – Debugging with command-line parameters in Visual Studio
- Eclipse – How to enable the column selection mode in Eclipse
- Git – .gitignore for Visual Studio Projects and Solutions
- Visual-studio – Visual Studio : short cut Key : Duplicate Line
- C# – format code shortcut for Visual Studio
- Android-studio – the shortcut to Auto import all in Android Studio
- R – flex3:How to override function set label of a button
- C++ – Redirect std::cout to newly created console
Best Answer
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.