Formatting Field Declarations in Eclipse
Posted
by
geeko
on Stack Overflow
See other posts from Stack Overflow
or by geeko
Published on 2010-12-31T13:39:43Z
Indexed on
2010/12/31
14:54 UTC
Read the original article
Hit count: 216
Greetings Overflowers,
Problem:
public abstract class Filter {
private long id;
protected String expression;
}
how can I align fields automatically in Eclipse, such in:
public abstract class Filter {
private long id;
protected String expression;
}
Note the space before long
, thank you !
UPDATE: I cannot find a customization option to align types of class members (e.g.: long
and String
) under Eclipse formatter options. Yes, there is one to align names of class members (e.g.: id
and expression
) but not their types. Please, take a lock at this issue in my examples above. Any solution ?
© Stack Overflow or respective owner