Possible Duplicate:
commenting VB code
Lack of block comments in VB .NET?
How to?
Is there a way to comment out more than one line of code in vb.net using VS 2010?
How do you comment out multiple lines in Visual Studio code? Comment Code Block Ctrl+K+C/Ctrl+K+U If you select a block of code and use the key sequence Ctrl+K+C, you'll comment out the section of code. Ctrl+K+U will uncomment the code.
You can use Ctrl+K, Ctrl+C and Ctrl+K, Ctrl+U to comment or uncomment selected lines of text.
ctrl + shift + A worked for me for adding multi-line comment.
In Visual Studio . NET you can do Ctrl + K then C to comment, Crtl + K then U to uncomment a block.
The only way is to highlight the lines to comment and press
ctrl + k, ctrl + c
or after highlighted press the toolbar option to comment out the selected lines.
The icons look like this
I just learned this trick from a friend. Put your code inside these 2 statements and it will be commented out.
#if false
#endif
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With