Bug 50296 - Formatter does not provide control over splitting lines before or after binary operators
Summary: Formatter does not provide control over splitting lines before or after binar...
Status: RESOLVED DUPLICATE of bug 48476
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-20 16:11 EST by Nick Crossley CLA
Modified: 2004-04-16 12:49 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***