Comment Out Multiple Lines of Code

There is a quick and easy way to convert multiple lines of code into comments. Simply add /* to start your comment, and */ to end the comment block, e.g. /* my commented out code */

Alternatively, you can also use the following method:

  1. Place the cursor at the beginning of the first line that you want to comment out.
  2. Hold down the Alt key, and then press the left button of your mouse.
  3. Drag the mouse down to the last line that you want to comment out. A thin, vertical highlight line will be visible.

    Note: Release and start again if the first character is captured.
  4. Release the mouse and the Alt key when you have the desired lines.
  5. Type //.
Note: The comments can be removed by repeating the same concept.