| Summary: | Formatter does not provide control over splitting lines before or after binary operators | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Nick Crossley <ndjc> |
| Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 3.0 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
The standard Java convention is to wrap lines before binary operators: varName = termOne + termTwo + termThree; However, some like to wrap after the binary operator (since when reading the first line, the trailing binary operator forces you to read on, and not think the expression is complete): varName = termOne + termTwo + termThree; The Java code formatter should provide this option.