Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse formatter split long String

Is there a way to tell Eclipse formatter that when a String is too long, it should split it with + to fit the maximum line width automatically?

For instance, if my max line width is 80, I'd like this:

String s = "This is a very very very very very very very very very very very very very very very very very very very long String";

to become something like this:

String s = "This is a very very very very very very very very very very very"
+ " very very very very very very very very long String";
like image 329
carcaret Avatar asked Sep 14 '15 09:09

carcaret


1 Answers

No. This would mean changing your source code, not just white space.

like image 106
nitind Avatar answered Sep 28 '22 09:09

nitind