Community
Participate
Working Groups
often semantic structure is best mirrored in code structure, which doesn't necessarily fit the code conventions though. hence a feature that allows us to exclude particular lines from auto-formatting, to mark them as "don't format" basically, would be great and promote readability immensely in certain cases.
Yes, this is a major functionality for me, especially in enumerations. Although the semantic structure argument is totally valid, I am more interested in simple readability of Java files. Sample code: public enum MsgId { // // keys for messages in the messages.properties file MSG_ASSOC_MANDATORY ("association.is.mandatory"), MSG_DEFAULT_ERROR_MSG ("default.error.msg"), MSG_FIELD_MANDATORY ("field.is.mandatory"), MSG_FILE_FIELD_MANDATORY ("file.field.label.mandatory"), MSG_FILL_MANDATORY_FIELDS ("fill.mandatory.fields"), MSG_INTEGRITY_VIOLATION ("integrity.violation"), ... } To this date, any formatting of this class will make the enum look garbage. A tag, directive, keyword, annotation, etc. anything that would prevent formatting of a portion of code would be fine for me.
Duplicate of bug 27079. *** This bug has been marked as a duplicate of bug 27079 ***
Verified for 3.6M6 using build I20100305-1011.
Verified.