Comment Block Macros

Do you find that it is much easier to comment or uncomment a block of code in Visual Basic editor? I wrote a couple of macro routines to do the same for Visual C++ editor. When you select a block of code and click on CommentBlock toolbar button, the selected text will be commented out with '//'. When you click on UncommentBlock toolbar button, the selected text will be uncommented if it was commented out with '//'.

To install the macro file, download it to your Visual Studio macro directory. This is usually C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Macros. From the Visual C++ editor, simply create two toolbar. Set each of them up to to run these macros: CommentBlock and UncommentBlock.

Downloads

Download source - 1 Kb


Comments

  • InterDev

    Posted by Legacy on 08/13/2002 12:00am

    Originally posted by: zk

    I guess that this macro can be used also in VS InterDev, of course tha change have to be made: instead "//" it has to be "'". I am having a trouble on how to register macro in InterDev and will apriciate some help.

    Thanks

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • On-demand Event Event Date: April 22, 2014 Database professionals -- whether developers or DBAs -- can often save valuable time by learning to get the most from their new or existing productivity tools. Whether you're responsible for managing database projects, performing database health checks and reporting, analyzing code, or measuring software engineering metrics, it's likely you're not taking advantage of some of the lesser-known features of Toad from Dell. Attend this eSeminar with Dell Software's …

  • The latest release of SugarCRM's flagship product gives users new tools to build extraordinary customer relationships. Read an in-depth analysis of SugarCRM's enhanced ability to help companies execute their customer-facing initiatives from Ovum, a leading technology research firm.

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds