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

  • Live Event Date: December 11, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT Market pressures to move more quickly and develop innovative applications are forcing organizations to rethink how they develop and release applications. The combination of public clouds and physical back-end infrastructures are a means to get applications out faster. However, these hybrid solutions complicate DevOps adoption, with application delivery pipelines that span across complex hybrid cloud and non-cloud environments. Check out this …

  • CentreCorp is a fully integrated and diversified property management and real estate service company, specializing in the "shopping center" segment, and is one of the premier retail service providers in North America. Company executives travel a great deal, carrying a number of traveling laptops with critical current business data, and no easy way to back up to the network outside the office. Read this case study to learn how CentreCorp implemented a suite of business continuity services that included …

Most Popular Programming Stories

More for Developers

RSS Feeds