dcsimg
September 26, 2020
Hot Topics:

Comment Block Macros

  • By Vu Dang
  • Send Email »
  • More Articles »

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






This article was originally published on May 7, 2000

Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.


Thanks for your registration, follow us on our social networks to keep up-to-date