![]() ![]() If you select a block of code and use the key sequence Ctrl+K+C, you'll comment out the section of code. Whether it's because you're trying to track down a "but," or experimenting with code change, from time to time you'll want to comment and uncomment blocks of code. ![]() It doesn't delete the code, it just removes the icon that lets you expand and collapse. ![]() The key sequence Ctrl+M+U will remove the collapsible region. 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |