mrblah mrblah - 28 days ago 9
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 + /