When I was editing GUI class I've found editor fold.
// <editor-fold defaultstate="collapsed" desc="Generated Code"> ... // </editor-fold>
I've started using it for my own purposes, but it's couple of words to write. So I'm looking for any faster way.
In Netbeans, you can type 'fcom' and press 'TAB'.
More shortcuts here
It is now the default behavior in Netbeans 7.3.1.
Just select the lines and click Surround with ...
as below snapshoot.
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