This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Use Case example: small classes used as map index or collection element. Like private static class FontSizeParams { private final ParamData family; private final ParamData size; The generated code is much larger than the rest of the class. If I generate equals() only using both fields, then option to create //<editor-fold defaultstate="collapsed" desc="equals(): family,size"> //</editor-fold> or if I generate both functions with both fields, could wrap both of them (this one would just be a bonus) //<editor-fold defaultstate="collapsed" desc="equals()&hashCode(): family,size"> I took a quick look at EqualsHashCodeGenerator.java, but my eyes glazed over. For UI, on the "Generate xxx" dialog, an option checkBox, e.g. "X Generate Fold", (with a value persisted in Preferences) is a possibility. There might be other generated code situations where this option would be useful. (I'm tempted to make this a P2 enhancement request)