One hack that allows you to force a new line whenever you want is to add a comment to the line ( // ) at the end of the line. For example, when I have parameter annotations, I want them to line up like this:
public ModelView finish(// @PathParam("stampId")// long stampId, //
Instead of this:
public ModelView finish(@PathParam("stampId") long stampId,
My use of // gives me finer control over this. Therefore, if you change the "Insert new lines after annotations" that you should get:
@Setter @Getter @sthElse @oneMore @etc
I am sure that if I had a look at the Eclipse formatting code, I could add it there, but I donβt have time for that. :-)
Gray
source share