Sunday, November 26, 2006

Multiline comments in VB.NET


Problem: Multiline comments in VB.NET

Solution: As yet, there is no multiline comment feature in VB.NET. Should use multiple single line comments ( ' ) only!!
Use keyboard shortcuts to save time. Select the lines to be commented and then use:

Ctrl+K Ctrl+C - Comment selected lines
Ctrl+K Ctrl+U - Uncomment selected lines

Note: Adding comments to a line twice causes the line to be commented twice!!
i.e., commenting twice gives ' '


No comments:

Back to Top


 

Labels