mrblah mrblah - 1 year ago 99
Java Question

Comment/uncomment a block of code in NetBeans shortcut

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

Answer Source

The list of keyboard shortcuts can be found in the NetBeans Wiki.

Turn On/Off Search Result highlights

Alt + Shift + H

Add/remove comment. Should work for all languages

Ctrl + / or in mac + /

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download