I have set the eclipse java formatter to wrap lines that exceed 120 characters to conform to our team's coding standard. However, when I have a long string that is wrapped I want the plus sign (+) to appear as the last character on the first line e.g.
String s = "Very long line that should be " +
"wrapped across several rows";
The default behaviour is that the plus sign is placed on its own line e.g.
String s = "Very long line that should be "
+
"wrapped across several rows";
So is it possible to specify where the plus sign should appear in the eclipse java formatter?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…