is there any way to make large comments, like the /* */ in c, or a hotkey to comment highlighted lines?
Printable View
is there any way to make large comments, like the /* */ in c, or a hotkey to comment highlighted lines?
edit: ignore me... but MZTools is still a useful toolbox
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 ...
yes that's right :blush:
i've forgotten which functionality is built in and which isn't - it's been a long week...
In case anybody is wondering here are few images.
Another method is to do line continuations:
chemVB Code:
'This comment _ will span _ a few _ lines.
I don't think it's a good option:
- it's stil one line
- only 24 line continuations allowed
:)
Thanks for the information. I never knew about this functionality within the VB IDE. :blush:Quote:
Originally Posted by RhinoBull
Is there a key shortcut to use this functionality like there is in Enterprise Manager's SQL IDE?
Unfortunately there isn't. :ehh:Quote:
Originally Posted by Fedhax
Here is a little-known feature of VB. You can create your own shortcuts!Quote:
Originally Posted by RhinoBull
- 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
Dear MartinLiss,
I tried. It is not working...
@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. :thumb:
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.Quote:
Originally Posted by danasegarane
Furthermore, check if you are not pressing CTRL in place of ALT. :blush:
Of course it does - just follow Martin's instructions.Quote:
Originally Posted by danasegarane
Sorry Guys.
It's working now.I missed the text and Image option. :wave:
Sounds better! :wave: :thumb: :afrog:
Sorry for posting in an old topic.
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/Quote:
Originally Posted by Fedhax
For me I adjusted it to Comment/ Un-Comment via Shift+Ctrl+C / Shift+Ctrl+U
:wave:
@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.
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 :)
Quote:
Originally Posted by RhinoBull
Awesome! :thumb:
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.
All you have to do is to explore all menu options and/or toolbar buttons - that's all.Quote:
Originally Posted by zynder