Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Comment/uncomment a block of code in NetBeans shortcut

Tags:

java

netbeans

Is there a shortcut in NetBeans to highlight a block of code and comment/uncomment it?

like image 475
mrblah Avatar asked Jan 06 '10 01:01

mrblah


People also ask

How do you uncomment a block of code?

If you select a block of code and use the key sequence Ctrl+K+C, you'll comment out the section of code. Ctrl+K+U will uncomment the code.

How do you shortcut and uncomment a comment?

Use the keys Ctrl K , C to comment out the line and Ctrl K , U to uncomment the line.


1 Answers

Try this combination in the Netbeans Editor: ctrl + shift + c

like image 181
Girish Avatar answered Oct 04 '22 01:10

Girish