| Summary: | Code formatting: Separate option "Wrap before operator" for strings and other items? | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Stefan Eidelloth <matameko> |
| Component: | Core | Assignee: | Mateusz Matela <mateusz.matela> |
| Status: | VERIFIED DUPLICATE | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | daniel_megert, jarthana, mateusz.matela |
| Version: | 4.5 | ||
| Target Milestone: | 4.11 M1 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
Related stack overflow article: http://stackoverflow.com/questions/30093578/how-to-use-different-line-wrapping-for-strings-and-other-items-in-eclipse-for-ja *** This bug has been marked as a duplicate of bug 543079 *** Verified for 4.11 M1 using build I20190107-2050. |
I would like to use line wrapping after operator for Strings and line wrapping before operator for other items (numbers, custom objects,..) int foo = baaa + veryveryveryloooooongexpression - shortexpression + anotherexpression; String message = "Would you like to use line wrapping at " + position + " ? If you want to keep that behavior press Enter." If the first item in the binary expression is a String, I would like to disable the formatting option "Wrap after operator" and otherwise enable the "Wrap after operator" => Please introduce an additional option to allow this behavior. (And please make sure this works for line wrapping inside method calls as well. Related bug report: https://bugs.eclipse.org/bugs/show_bug.cgi?id=466919 )