How do you comment out blocks of code?

  • Thread starter Thread starter Brian
  • Start date Start date
Hello,

Brian said:
Anyone know how to comment out a block of 30
lines of code easily?

If the VB6 keyboard scheme is selected (this can be done on VS.NET's start
page), you can use Ctrl+C, Ctrl+K. Notice that this functionality is
available in the "Edit" menu and on a toolbar ("Text Editor") too.
 
You select the 30 lines and click uncomment button.

And if you don't see the button, go to Tools - > customize and check the
Text Editor checkbox in Toolbars tab on the Customize form
 
Brian said:
Anyone know how to comment out a block of 30 lines of code easily?

Thanks.
highligth, Ctrl-K, Ctrl-C

To uncomment

highlight, Ctrk-K, Ctrl-U

HTH,
Tom Shelton
 
Hi Herfried,
: Ctrl+C, Ctrl+K.

Do you mean Ctrl+K, Ctrl+C?

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Chaos, Panic, Disorder, my work here is done"


: Hello,
:
: > Anyone know how to comment out a block of 30
: > lines of code easily?
:
: If the VB6 keyboard scheme is selected (this can be done on VS.NET's start
: page), you can use Ctrl+C, Ctrl+K. Notice that this functionality is
: available in the "Edit" menu and on a toolbar ("Text Editor") too.
:
: --
: Herfried K. Wagner
: MVP · VB Classic, VB.NET
: http://www.mvps.org/dotnet
:
:
 
Back
Top