Commenting and uncommenting lines of code
To comment lines of code in the Java editor:
-
Select the lines you wish to comment
-
Do one of the following:
-
Press Ctrl+/ or
-
Select Source > Comment from the menu bar
To uncomment lines of code in the Java editor:
-
Select the lines you wish to uncomment
-
Do one of the following:
-
Press Ctrl+\ or
-
Select Source > Uncomment from the menu bar
Java editor
Using the Java editor
Source menu