Share via

IDE how to add Comment Uncomment to tool bars.

Jim Reid 20 Reputation points
2026-02-21T20:14:58.19+00:00

Is there an easy way to add buttons to the standard tool bar that work the comment and uncomments? I had it working once but don't remember how I got it and I use it to clean up code by commenting it out and checking for errors and then uncommenting if necessary. It's also good for documentation of code.

Developer technologies | VB

Answer accepted by question author
  1. Viorel 126.8K Reputation points
    2026-02-22T08:06:53.9933333+00:00

    To view the default buttons, open any .vb code file. Go to menu > VIEW > Toolbars, and make sure that “Text Editor” is selected. The buttons looks like this:

    User's image

    The toolbars can be rearranged.

    To add these buttons to Standard toolbar, click the three-dots button on Standard toolbar, select “Add or Remove Buttons”, then “Customize...”. Press “Add Command...”, find the buttons in Edit group. (They are called “Selection Comment” and “Selection Uncomment”).

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.