Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to quickly create editor fold?

Tags:

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.

like image 632
kravemir Avatar asked Jun 28 '12 19:06

kravemir


2 Answers

In Netbeans, you can type 'fcom' and press 'TAB'.

More shortcuts here

like image 131
Kang Jie Ming Avatar answered Sep 27 '22 23:09

Kang Jie Ming


It is now the default behavior in Netbeans 7.3.1.

Just select the lines and click Surround with ... as below snapshoot.

enter image description here

like image 20
Nam G VU Avatar answered Sep 28 '22 00:09

Nam G VU