By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,890 Members | 1,248 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,890 IT Pros & Developers. It's quick & easy.

How do you comment out blocks of code?

P: n/a
Anyone know how to comment out a block of 30 lines of code easily?

Thanks.
Nov 20 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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

--
Dino Buljubasic
Software Developer
http://rivusglobal.com

"Brian" <br*********@yahoo.com> wrote in message
news:be**************************@posting.google.c om...
Anyone know how to comment out a block of 30 lines of code easily?

Thanks.

Nov 20 '05 #2

P: n/a
Hello,

"Brian" <br*********@yahoo.com> schrieb:
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
Nov 20 '05 #3

P: n/a
Brian wrote:
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
Nov 20 '05 #4

P: n/a
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"
"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:OW**************@TK2MSFTNGP09.phx.gbl...
: Hello,
:
: "Brian" <br*********@yahoo.com> schrieb:
: > 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
:
:
Nov 20 '05 #5

P: n/a
Hello,

"Tom Spink" <th**********@ntlworld.com> schrieb:
: Ctrl+C, Ctrl+K.

Do you mean Ctrl+K, Ctrl+C?


Sorry, typo.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.