Quick Tip: Visual Studio 2013 Line/Region Move
One of the new productivity features I ran across in Visual Studio allows the use of the keyboard to move lines and regions in your code. This makes it easier than having to do a copy and paste operation. In this post we will look at how to use this feature.
With your solution open select a line of code as shown in the following screenshot.
With the line selected hold the ALT + Up Arrow key to move the line up as shown in the following screenshot.
With the line select hold the ALT + Down Arrow to move the line of code back down one line as shown in the following screenshot.
Next, let’s collapse the code block down into a region as shown in the following screenshot.
With the region selected hold the ALT + Up Arrow key to move the line up as shown in the following screenshot.