Comments in Visual Basic

Single line Comments

Single Quote (‘) is used to comment a line in Visual Basic. Used as :

Console.WriteLine("Enter message") ' writing message
Dim message As String ' string variable message for storing input
message = Console.ReadLine() ' reading a line
'Console.WriteLine(message) ' outputting input value

Multiple line Comments

The only way is to comment multiple lines is to press
1) Comment Block: Ctrl + K + C
2) Uncomment Block: Ctrl + K + U