Community
Participate
Working Groups
Hi, Presently java code formating has the option to leave n blank lines or none in between mtd, vars and classes. Can we enhance this to allow single empty comments for inter method,var,class spacing. With color coding this formating makes the code easy to read on the screen. pkg adfasdf; // mtd1() { } // mtd2() { } Please consider this Cheers
>to allow single empty comments You mean to insert those?
(In reply to comment #1) > >to allow single empty comments > You mean to insert those? Yes please. And other variations. Some people might want /*************** ${mtd_name} ****************/ inserted before each method. Where mtd_name is generated already etc. we just want a // as shown in the sample above.
How about grouping ? For instance all methods that implement ActionListener must be grouped and formatted as /////////////////////// Implements ${InterfaceName} ////////////////////////// actual mtds listed under here. Also flds and corresponding get/set methods groupd together etc. This makes easy to read a code printout.
This request is not about formatting since formatting in general only affects whitespace. What would be needed is - smart typing that auto-inserts the method (or member) separator - a command that adds those upon request to an open file and a set of resources Re grouping: the better approach is to wait and use the upcoming @category tag. Note that there's a feature request for a member separator (no grouping though).