views:

64

answers:

0

Can I automatically reformat Java code in Eclipse so that no lines exceed 80 characters in length, with string literals being split and concatenated using "+"?

Example:

String s = "very long "| <- imagine this column to be the 80 chars margin
    + "string";        |

All wrapping seems to work but string splitting...

Thanks!

This is not a dupe of: http://stackoverflow.com/questions/257251/eclipse-shortcut-to-split-long-strings

Note: ideally this auto-formatting would be able to "re-adjust" splitting should one want to move the lineSplit value...