Eclipse Formatter: Remove Empty Line Between Annotation and its target

256 views Asked by At

I'm configuring the autoformatter for my project and I'm not able to make sure, that between an Annotation and its target is no empty line.

This:

@Entity



public class JuelKlasse {

Will be formatted to:

@Entity

public class JuelKlasse {

Because I set Blank Lines -> Number of empty lines to preserve to 1, which is what I want for example for the space between two methods.

But what I want is:

@Entity
public class JuelKlasse {

What I don't want is:

@Entity public class JuelKlasse {

I have not found any specific setting to keep annotations right in the line before its target. Does something like that exist?

0

There are 0 answers