Commenting out code

To comment a block of code

  1. In the C/C++ Editor, highlight a section of code to be commented. For one line, place your cursor on that line.
  2. Right-click and click Comment.

To uncomment a block of code

  1. In the C/C++ Editor, highlight a section of code to be uncommented. For one line, place your cursor on that line.
  2. Right-click and click Uncomment.
Copyright IBM Corporation
 2000, 2002. All Rights Reserved.