Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 50296

Summary: Formatter does not provide control over splitting lines before or after binary operators
Product: [Eclipse Project] JDT Reporter: Nick Crossley <ndjc>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Nick Crossley CLA 2004-01-20 16:11:52 EST
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.
Comment 1 Olivier Thomann CLA 2004-04-16 12:49:17 EDT
Close as duplicate of bug 48476

*** This bug has been marked as a duplicate of 48476 ***