473,320 Members | 1,909 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How do you comment out blocks of code?

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

Thanks.
Nov 20 '05 #1
5 50893
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Riko Wichmann | last post by:
Dear all, is there a way in Python to comment out blocks of code without putting a # in front of each line? Somethings like C's /* block of code here is commented out */ Thanks,
4
by: William | last post by:
I have a question regarding comments. In some of my projects if I have a multi-line comment block I am able to collapse those blocks even if it is within a sub or a function. I like this...
3
by: Brett | last post by:
Is there a way to comment blocks of code? Similar to SQL's /* */ Thanks, Brett
8
by: Ben | last post by:
Does anyone know if there is a way to get VB.net to let me comment out a large portion of codes? Like in C/C++, I was able to comment out using /* ...... */ I think there is something to do with...
6
by: carolyn | last post by:
I am trying to figure out if there is meaning to a comment "/* \*/" or if I am reading too much into it. I am reworking some stylesheets and came across the /* \*/ in the document a number of...
29
by: dbhbarton | last post by:
Had a thought that's grown on me. No idea if it's original or not- too inexperienced in programming- but I guess there's no harm floating it out there. Python wins big on readability, and...
0
by: SQLBusinessIntelligence | last post by:
How do I comment out blocks of code IN IBM DB2 Control Center console? The only thing that works is double hyphens "--". I tried using "/**/" but that produces a syntax error. Thanks
1
by: sbwoodside | last post by:
Hi there. I'm writing code in eRuby (aka ERB) which is basically XHTML + ruby code contained inside <% these kind of %blocks. My editor uses an XML parser which doesn't recognize these blocks and...
14
by: Siv | last post by:
Hi, Just busily coding away and removed a procedure from my code and all of a sudden an error came up miles away from the location of the piece of code I removed and it relates to the XML...
39
by: polas | last post by:
Afternoon all. I was just wondering about this point - I have (generally) used // for commenting a single line in C, but from looking at code other people have written it seems many use /* */...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.