I'm running Eclipse 3.7.2 on Windows 7 professional.
If I type a method declaration like this:
private void processCode(String codename,
boolean doSomethingElse,
int num_of_repeats){
}
Then hit Ctrl + I with the whole file selected, Eclipse will mess up the alignment of the function arguments like this
private void processCode(String codename,
boolean doSomethingElse,
int num_of_repeats){
}
How can I get Eclipse to stop doing that?
Follow these steps to achieve what you want:
You should now have the behavior you intended. If it fits your needs, you might want to apply the same settings for constructor parameters as well.
All, I understand this is an old thread, but the MARS eclipse editor wont line up this correctly and like to see if anyone experienced the same in eclipse MARS edition? The String u indentation is not lined up with String k:
public Properties fc(String k,
String u) {
return new Properties();
}
EDIT: I found out the font I used was Lucida Console which is not fix-space font. Eclipse's Java editor has various syntax with BOLD on in which it made the aligned "looked" unaligned, but in fact it was due the bold syntax that widen the characters.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With