-
Oct 13th, 2006, 12:09 PM
#1
Thread Starter
Hyperactive Member
Mass Commenting?
is there any way to make large comments, like the /* */ in c, or a hotkey to comment highlighted lines?
It's not just Good, It's Good enough!
Spelling Eludes Me
-
Oct 13th, 2006, 12:17 PM
#2
Re: Mass Commenting?
edit: ignore me... but MZTools is still a useful toolbox
Last edited by bushmobile; Oct 13th, 2006 at 12:29 PM.
-
Oct 13th, 2006, 12:25 PM
#3
Re: Mass Commenting?
VB has its own "block comments" feature:
- go to View -> Toolbars ans select Edit...
OR
- right click on the toolbar and select Customize
- select Commands tab
- select Edit from the Categories
- select "Comment Block" and/or "Uncomment Block" from the Commands list
- drag/drop either on the VB IDE toolbar
- new button will be created for each ...
-
Oct 13th, 2006, 12:28 PM
#4
Re: Mass Commenting?
yes that's right
i've forgotten which functionality is built in and which isn't - it's been a long week...
-
Oct 13th, 2006, 12:30 PM
#5
Re: Mass Commenting?
In case anybody is wondering here are few images.
Last edited by RhinoBull; Oct 27th, 2006 at 07:49 AM.
Reason: New "Customize Toolbar" image was added.
-
Oct 13th, 2006, 01:01 PM
#6
Re: Mass Commenting?
Another method is to do line continuations:
VB Code:
'This comment _
will span _
a few _
lines.
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Oct 13th, 2006, 01:05 PM
#7
Re: Mass Commenting?
I don't think it's a good option:
- it's stil one line
- only 24 line continuations allowed
-
Oct 13th, 2006, 01:06 PM
#8
Hyperactive Member
Re: Mass Commenting?
Originally Posted by RhinoBull
In case anybody is wondering here is an image.
Thanks for the information. I never knew about this functionality within the VB IDE.
Is there a key shortcut to use this functionality like there is in Enterprise Manager's SQL IDE?
-
Oct 13th, 2006, 01:08 PM
#9
Re: Mass Commenting?
Originally Posted by Fedhax
...Is there a key shortcut to use this functionality ...
Unfortunately there isn't.
-
Oct 14th, 2006, 12:26 AM
#10
Re: Mass Commenting?
Originally Posted by RhinoBull
Unfortunately there isn't.
Here is a little-known feature of VB. You can create your own shortcuts!
- Right click on the Comment Block Icon
- Choose Customize
- Right click on Comment Block Icon a second time
- Choose Image and Text
- Right click on Comment Block Icon a third time
- Add an ampersand in front of "Comment Block" in the Name: box so that it looks like &Comment Block
- Repeat for UnComment Block winding up with &UnComment Block
- Close the Customize window
Alt-C and Alt-U will now comment and uncomment your highlighted text
-
Oct 14th, 2006, 05:16 AM
#11
Re: Mass Commenting?
Dear MartinLiss,
I tried. It is not working...
-
Oct 14th, 2006, 09:50 AM
#12
Re: Mass Commenting?
@Martin:
nice but I have a problem with this technic: you must be absolutely sure that hot key doesn't already exist elsewhere in the IDE or you may break some functionality.
Other than that as I said it is nice.
-
Oct 14th, 2006, 09:55 AM
#13
Re: Mass Commenting?
Dear RhinoBull,
Is it working.I am not abled to do?
-
Oct 14th, 2006, 10:04 AM
#14
Re: Mass Commenting?
Originally Posted by danasegarane
Dear RhinoBull,
Is it working.I am not abled to do?
Yes it is working, but for uncomment, dont put & in front of U, because Alt+U is already assigned to Query menu.
Furthermore, check if you are not pressing CTRL in place of ALT.
-
Oct 14th, 2006, 10:07 AM
#15
Re: Mass Commenting?
Originally Posted by danasegarane
Dear RhinoBull,
Is it working.I am not abled to do?
Of course it does - just follow Martin's instructions.
-
Oct 14th, 2006, 10:13 AM
#16
Re: Mass Commenting?
Sorry Guys.
It's working now.I missed the text and Image option.
-
Oct 14th, 2006, 10:14 AM
#17
-
Oct 26th, 2006, 04:33 PM
#18
Addicted Member
Re: Mass Commenting?
Sorry for posting in an old topic.
Originally Posted by Fedhax
Thanks for the information. I never knew about this functionality within the VB IDE.
Is there a key shortcut to use this functionality like there is in Enterprise Manager's SQL IDE?
Yes you can do that by Add-in named (MZ-Tools) , I can't imagine that there is a VB developer don't know it : http://www.mztools.com/
For me I adjusted it to Comment/ Un-Comment via Shift+Ctrl+C / Shift+Ctrl+U
-
Oct 26th, 2006, 06:30 PM
#19
Re: Mass Commenting?
@msayed2004:
You were late by about 13 days 4 hours and 16 minutes...
MZTools utility was recommended by bushmobile in very first reply in this thread.
-
Oct 26th, 2006, 06:41 PM
#20
Addicted Member
Re: Mass Commenting?
Ooooops , I didn't saw that , I came here via a link to a post in the middle of the topic , So I didn't saw that , sorry , I just wanted to help
-
Oct 27th, 2006, 02:37 AM
#21
Hyperactive Member
Re: Mass Commenting?
Originally Posted by RhinoBull
VB has its own "block comments" feature:
- go to View -> Toolbars ans select Edit...
OR
- right click on the toolbar and select Customize
- select Commands tab
- select Edit from the Categories
- select "Comment Block" and/or "Uncomment Block" from the Commands list
- drag/drop either on the VB IDE toolbar
- new button will be created for each ...
Awesome!
-
Jan 18th, 2007, 09:40 PM
#22
Re: Mass Commenting?
I've been using VB for 6 months and Im surprised. Never knew VB could have some hidden functionality or it is just me whose ignorant. Anyway, this help me alot in commenting blocks.
-
Jan 18th, 2007, 10:08 PM
#23
Re: Mass Commenting?
Originally Posted by zynder
... Never knew VB could have some hidden functionality...
All you have to do is to explore all menu options and/or toolbar buttons - that's all.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|