473,401 Members | 2,068 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,401 software developers and data experts.

How to block comment?

Is there a way to comment blocks of code? Similar to SQL's /* */

Thanks,
Brett
Nov 21 '05 #1
3 48383
Not in VB.NET, you have to select all lines at then Edit, Advanced, Comment
Selection menu, or a keyboard shortcut for that menu.

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com
"Brett" <no@spam.com> escribió en el mensaje
news:Ot**************@TK2MSFTNGP09.phx.gbl...
Is there a way to comment blocks of code? Similar to SQL's /* */

Thanks,
Brett

Nov 21 '05 #2
Nope.

From VS.NET IDE, Press Ctrl+K, Ctrl+C to comment blocks of code. This still
uses ' character on each line for commenting.

"Brett" <no@spam.com> wrote in message
news:Ot**************@TK2MSFTNGP09.phx.gbl...
Is there a way to comment blocks of code? Similar to SQL's /* */

Thanks,
Brett

Nov 21 '05 #3
Mark Jerde wrote:
Brett wrote:
Is there a way to comment blocks of code? Similar to SQL's /* */


Not that I know of, but the "Comment out the selected lines" icon on
the Text Editor Toolbar works well.


P.S. I don't recall if these buttons are on the Text Editor Toolbar by
default or if I had to add them. IIRC in VB6 you had to add them to the
toolbar.

-- Mark
Nov 21 '05 #4

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,
3
by: Xah Lee | last post by:
is there a syntax to comment out a block of code? i.e. like html's <!-- comment --> or perhaps put a marker so that all lines from there on are ignored? thanks. Xah xah@xahlee.org...
16
by: qwweeeit | last post by:
In analysing a very big application (pysol) made of almost 100 sources, I had the need to remove comments. Removing the comments which take all the line is straightforward... Instead for the...
1
by: David Veeneman | last post by:
In VS.NET 1.1, when I commented-out a block of code, VS.NET put the comment slashes on the left margin, rather than next to the code. This made it very easy to identify blocks of code that I had...
18
by: John Salerno | last post by:
I'm still tyring to figure out what "Pythonic" means, and I have a feeling the answer to my question may fall into that category. Are block comments somehow unpythonic?
2
by: joselijo79 | last post by:
Hi , Could anybody tell us how to use block comments in IBM DB2 Command Center .The version of the client that I'm using is 8.1.6 . I need to comment multiple lines that appear consecutively in an...
3
by: GS | last post by:
how can one quickly comment out a block of selected code in visual studio express 2005 the insert comment is only good for a block of comment before sub, function right now I would have to cut...
3
by: MartinRinehart | last post by:
Tomorrow is block comment day. I want them to nest. I think the reason that they don't routinely nest is that it's a lot of trouble to code. Two questions: 1) Given a start and end location...
3
by: Richard | last post by:
Again, new to DB2. Trying to do something I can do in Sybase ASE. In any Sybase SQL script I can use /* */ to comment out a block of code. In the DB2 9.0 SQL Reference Manual V1 it says: ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.