Having every argument of an annotation on a different line on Eclipse

Viewed 22

I am trying to have every argument of an annotation on a different line on eclipse. Currently I have this:

@Table(name = "student", uniqueConstraints = {
    @UniqueConstraint(name = "student_email_unique", columnNames = "email")
})

what I would like to have is this:

@Table(
    name = "student", 
    uniqueConstraints = {
        @UniqueConstraint(
            name = "student_email_unique", 
            columnNames = "email"
        )
    }
)
1 Answers

Prevent formatting as follows

// @formatter:off
@Table(
    name = "student", 
    uniqueConstraints = {
        @UniqueConstraint(
            name = "student_email_unique", 
            columnNames = "email"
        )
    }
)
// @formatter:on
Related