Comment

You can quickly and easily comment code by selecting a line or a block of text and tagging it as a comment.

Comments can be added to single lines of code - // or blocks of code - /*...*/.

See also:
Uncomment

To comment a line, place the cursor anywhere on the code and click . Two slashes // will be added to the front of the line, causing it to be recognized as a comment.

Single line of comment Before Apply
After Apply


To comment more than one line, select all the lines that you would like to be commented and click . Two slashes // will be added to the front of each line, causing them to be recognized as a comment.

Multiple lines of comments Before Apply
After Apply


To comment a block of text, select the required block of code and click . The beginning (/*) and ending (*/) characters will be added in the appropriate places in order to mark the selected block as a comment.

Block of comments Before Apply
After Apply