Visual Studio.NET: How To Comment/Uncomment Large Blocks of Code
Just a quick tip that I find extremely useful: To comment a large block of code (at least for VB.NET, I don’t know if it works in C#, but I assume it does), highlight the area you want to comment out and hold Ctrl and press K and then C. To uncomment, highlight the commented area and hit Ctrl + K + U. The mass uncommenting merely removes the forward-most apostrophe, so if you have actual comments in your commented code that were included in your initial highlighted region, they will remain comments upon uncommenting.
I use this technique a lot for debugging large areas of code.
RSS Feed
Doesn’t necessarily have to be “large” blocks of code. It works anywhere. Thanks for the tip though
True! However, typically for smaller blocks I just hit the apostrophe key. Thanks for the comment
Thanks a lot for your tip. I recently began coding in VB.Net for my seniour project. I have found it much more advanced than the language I know before (C++).
Finally, I want to know what threading is and how to use it in VB.Net. Please post something about it.
Have a nice time.
Check out http://www.helpwithdotnet.com/
Specialized Search Engine to help you with DotNet (.NET) development
Yes, I agree.
This keystroke is useful on a large block of code. Most of the time, a simple apostrophe will do…:)
It worked thanks.