When I am entering a String literal in a Java file in Eclipse, and I want to break the String into multiple lines in the source (not the String's content/value), by default Eclipse wants to put the +
at the beginning of the new line instead of at the end of the previous line.
For example, where |
represents the text cursor:
String str = "This is a really long line which I would like| to break into several."
When I hit Enter
, it now looks like:
String str = "This is a really long line which I would like"
+ " to break into several."
But I want it to look like:
String str = "This is a really long line which I would like" +
" to break into several."
Where in Eclipse can I set the preference for where this +
goes?