Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to organize the code similar to #region/#endregion in .NET?

While the code is growing big it is getting harder and harder to keep everything well organized. One thing I liked very much the time I developed in .NET was #region/#endregion which enabled to organize the code in logical groups and made further organization much easier.

Does anyone know whether there is any similar code organization possible in Java?

like image 529
Niko Gamulin Avatar asked Sep 29 '09 13:09

Niko Gamulin


1 Answers

This works in netbeans:

// <editor-fold defaultstate="collapsed" desc=" Region Name ">

... Enter Code Block here ...

// </editor-fold>
like image 65
Dweep Sharma Avatar answered Sep 30 '22 12:09

Dweep Sharma