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.

Share this article on   LinkedIn

Thomas Robbins

I spend my time working with partners and customers extending their marketing and technology to the fullest.

Comments

Thom commented on

Thanks and glad you enjoyed it! What I would recommend is to check out the Kentico developer's guide and search for MVC. There is a small tutorial available to get you going.

oscar.lagatta-gmail commented on

Great info.
I'm new to Kentico, is there any basic tutorial of how to integrate and work with ASP.NET MVC with Kentico?