The default eclipse line indent rule, which applies everywhere,
including continuing a method signature, is to indent the continued
line by 2 'levels' compared to the first line of the logical unit. In
other words, using "* " to represent one indent unit:
public class Test {
* public void methodWithLongSig(String x,
* * * String y) {
* * statement;
* }
}
You CAN configure eclipse to outline continued multi-variable
declarations and method signatures vertically, so that both "String"
types in the above snippet are directly adjacent (vertically) to each
other assuming you're using a fixed-width font. But this is not the
default.
On Oct 14, 8:22 pm, Josh Berry <[email protected]> wrote:
> I'm amused that you call this ascii art. I would agree that it might
> get tedious if I had to do the spaces by hand, but even the example I
> showed is the default indentation of IDEA. I think it is the same for
> Eclipse, don't have it to check right off.
>
> As for the merging concern.... any merge tool can be set to ignore
> whitespace, if you want. Or... better yet, just merge the differences
> for you. :) Having the arguments split like this allows you to very
> easily merge two branches where one removed an argument and one added.
> That was the entire reason I mentioned it.
--
You received this message because you are subscribed to the Google Groups "The
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/javaposse?hl=en.