Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I comment out multi-lines in netbeans version 8.0?

Tags:

I used to be able to turn multi-line codes into a single line by clicking on the minus sign on the left of the code and add // to comment out a multi-line code. Now when I do it, the code just gets deleted…

What do I do?

like image 321
Dtjin Avatar asked Jun 23 '14 08:06

Dtjin


People also ask

How do you comment and uncomment in NetBeans?

out in a one action with Ctrl-Shift-C. And, by the way, it works in reverse too - uncomment that code later with the same key sequence. If you prefer using the mouse, you can also use the buttons at the top of the editor window to comment and uncomment.

How do you select and comment multiple lines in Java?

Multi-line comments start with /* and ends with */ . Any text between /* and */ will be ignored by Java.

How do you mass comment out in Java?

Multi line comments in Java start with /* and end with */. You can comment multiple lines just by placing them between /* and */.


2 Answers

  • Windows: Ctrl+⇧ Shift+c
  • Mac: ⌘ Cmd+⇧ Shift+c
like image 84
TheOpti Avatar answered Sep 28 '22 13:09

TheOpti


Simply Select all lines and press Ctrl+/

like image 43
Romel Christopher Avatar answered Sep 28 '22 12:09

Romel Christopher