String concatenation in Eclipse without spaces

For example, combining these two lines with the CTRL+ key combination Jin Eclipse results in the following:

something().somethingElse()
    .yetAnotherThing();

// Joining the above two lines results in this:
something().somethingElse() .yetAnotherThing();

Is there a way to join these lines so that it leads to the following:

// Notice there is no excess whitespace
something().somethingElse().yetAnotherThing();
+4
source share
1 answer

As for the "join lines" of a specific command, introduced with Eclipse 3.3, which in my case is tied to Ctrl+ Alt+ J, I think we are stuck with the addition of space now. This is a known bug .

( Shift + Ctrl + F), , .

.

+3

All Articles