Results 1 to 9 of 9

Thread: [RESOLVED] Is there a keyboard shortcut to add "comment block"?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2014
    Posts
    341

    Resolved [RESOLVED] Is there a keyboard shortcut to add "comment block"?

    If I do not want to click on the "comment block" button every time?
    Is it customizable?

  2. #2
    Addicted Member
    Join Date
    Jul 2014
    Posts
    176

    Re: Is there a keyboard shortcut to add "comment block"?

    Sorry but its not customizable, it's either every line you will put a single quote ( ' ) at the beginning.
    If I had helped you...

    Don't forget to mark your Inquiry as RESOLVED...

    I will be glad if you can also give me some Reputation points in helping you (by Clicking Rate This Post)...

    Happy VB Coding Everyone!

  3. #3
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    6,743

    Re: Is there a keyboard shortcut to add "comment block"?

    I use the MZTools addin for this kind of functionallity
    http://mztools.com/v3/download.aspx

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Is there a keyboard shortcut to add "comment block"?

    I don't know if there is a way, but you might be able to map a keystroke combination to the button. It's been a long time since I've used the VB6 IDE, so I don't remember if something like that is possible. I remember this being a pain for me at the time too. I don't recall anything in MZTools that addressed this though (and after looking back trhough the features, I don't see anything regarding comment blocking)... Unless there's something about that Arnoutdv knows about it that I don't.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  5. #5
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    6,743

    Re: Is there a keyboard shortcut to add "comment block"?

    In MZTools "options" go to Tab "Shortcuts", select a button, assign a shortcut, click "Add"

    I use:
    "CTRL-1" for "Comment Block"
    "CTRL-2" for "Uncomment Block"
    "CTRL-3" for "Add Line Numbers"
    "CTRL-4" for "Remove Line Numbers"

  6. #6
    PowerPoster
    Join Date
    Aug 2010
    Location
    Canada
    Posts
    2,894

    Re: Is there a keyboard shortcut to add "comment block"?

    1. In the MZTools toolbar, click the Options button, then click the Shortcuts tab.
    2. In the Button list, select Comment Block.
    3. In the Shortcut list, select the key combination that you want to use (I use Ctrl+K to match some other editors).
    4. Click the Add button.
    5. Repeat the above for Uncomment Block and the key combination you want to use for that (I use Ctrl+Shift+K for the same reason as above).

  7. #7
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Is there a keyboard shortcut to add "comment block"?

    So the answer is "Yes, there is something I know that you don't. Nanah-nanah-boo-boo!"

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  8. #8
    Addicted Member
    Join Date
    Jul 2014
    Posts
    176

    Re: Is there a keyboard shortcut to add "comment block"?

    Hahaha! Haven't used that Add-In too! New knowledge acquired.
    If I had helped you...

    Don't forget to mark your Inquiry as RESOLVED...

    I will be glad if you can also give me some Reputation points in helping you (by Clicking Rate This Post)...

    Happy VB Coding Everyone!

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2014
    Posts
    341

    Re: Is there a keyboard shortcut to add "comment block"?

    Quote Originally Posted by Arnoutdv View Post
    I use the MZTools addin for this kind of functionallity
    http://mztools.com/v3/download.aspx
    Already using it, very handy, although I still want some more functionalities ... I'm so greedy.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width