Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

multiline comment in vb.net

Do we have a multi line comment in VB.net.
I know in Java we have /* */ but that doesn't seem to work here.

like image 924
krum_cho Avatar asked Feb 22 '11 20:02

krum_cho


People also ask

How do you comment multiple lines in VB?

Write your chunk, select it and press Ctrl+K, Ctrl+C to comment it.

How do you comment multiple lines in Visual Studio 2010?

The only way to do multi-line comments in VB.NET is to do a lot of single line comments( ' ). Or just highlight the whole code and just use (Ctrl+E,C) , (Ctrl+E,U) to comment or uncomment.


2 Answers

No we dont unfortunately..........

You can do: Ctrl + K, Crtl + C

To uncomment ctrl+k ctrl+u

like image 88
JonH Avatar answered Oct 04 '22 13:10

JonH


In Visual Basic .Net 2008 and 2010, I use the following C++ Workaround.

#If AFAC Then

#End if

For english speaking AFAC = "à effacer" = "to delete"

I alreay use #If COMMENT or #If TODO

The #if COMMENT then solution is more power than the C++/Java/C# /* text */ solution because it is possible to imbricate (embed) #if but not /* !!!

For more information see the following link

like image 36
schlebe Avatar answered Oct 04 '22 11:10

schlebe