Did you know you can create your own collapsible regions? If you select a section of code and then use the key sequence Ctrl+M+H, you turn that region into a collapsible/expandable region. If you use the Alt+Down Arrow keys, the line of code selected moves down.Ĭreate Collapsible Region Ctrl+M+H/Ctrl+M+UĬhances are you've noticed the '+' and '-' symbols in the margins that let you collapse and expand your classes and functions.
If you put the cursor on a line of code and use the Alt+Up Arrow keys, the line of code you've selected moves up. This keyboard shortcut is new in Visual Studio 2013.
There's a good chance at least one of them will be new to you. Here are five of my favorite keyboard shortcuts in Visual Studio.