Comment out code

You can comment out (or uncomment) one or more lines of code. An asterisk (*) is added to each line in the indicator area (column 7)

About this task

To comment out code:

Procedure

  1. In the editor, select the line(s) of code that you want to comment out (or uncomment). If no lines are selected, the line at the current cursor position will be commented out (or uncommented).
  2. Right-click on the selection and do one of the following:
    • To comment out the selected code, select Source > Comment.
    • To uncomment the selected code, select Source > Uncomment.

Feedback