Is there a shortcut in NetBeans to highlight a block of code and comment/uncomment it?
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.
Use the keys Ctrl K , C to comment out the line and Ctrl K , U to uncomment the line.
Try this combination in the Netbeans Editor: ctrl + shift + c
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With