Monday, March 31, 2008

Eclipse 3.4 Annotation Formatting

Eclipse 3.4 M5 resolves one of my biggest remaining complaints with the Eclipse formatter -- the inability to specify newline-after-annotation settings differently for annotations on different scopes:

Starting with 3.4M5, the Java source code formatter provides fine-grained options for line breaks after annotations. Instead of specifying whether line breaks should be inserted after all types of annotations, it's now possible to specify this separately for each of the different types of annotations

For instance, I would personally like to have newlines after method annotations, but not on method parameter annotations.

No comments: