To comment one line of code, do as follows:
- Click on the line, then right-click. A context menu is displayed.
- Select Comment. Comment indicators (//) are
placed at the beginning of the line.
To comment multiple consecutive lines of code, do as follows:
- Click on the starting line. Holding down the left mouse button, drag the
cursor to the ending line. Release the mouse button, and the range of lines
is highlighted.
- Right-click, then select Comment from the context
menu. Comment indicators (//) are placed at the beginning of each of the lines
in the selected range.
Use the same procedures to uncomment lines, but select Uncomment from
the context menu.