Bug 48476 - [formatter] Code formatter should have option for aligning operators when wrap
Summary: [formatter] Code formatter should have option for aligning operators when wrap
Status: CLOSED DUPLICATE of bug 79068
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P5 enhancement with 5 votes (vote)
Target Milestone: 3.3 M7   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 49362 50296 54642 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-12-11 07:53 EST by Csaba Horvath CLA
Modified: 2016-01-14 17:12 EST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Csaba Horvath CLA 2003-12-11 07:53:30 EST
The new code formatter is quite flexible and I can configure it to our code
conventions (Big Thanks for this). Only one option I miss at the moment: our
convention is to place operators at the end of the line when line need wrap, e.g.:

if (a == 2 && c == 3 &&
    b == 4)
or
someObject.
    someMethod

I cannot find options for doing this, the formatter only format this way:
if (a == 2 && c == 33
    && b == 4)
or
someObject
    .someMethod

Allowing configuration of operator placing would be very good for us.
Thanks,
Csaba
Comment 1 Olivier Thomann CLA 2004-01-05 11:26:28 EST
*** Bug 49362 has been marked as a duplicate of this bug. ***
Comment 2 Olivier Thomann CLA 2004-01-05 11:26:48 EST
Same thing for binary operators.
Comment 3 Florin Iucha CLA 2004-02-15 15:09:45 EST
I also want an option to but a new line _after_ the operator, not before:

   Default behavior:
      if (a == 2 && c == 3
           && b == 4)

   Desired customized behavior:
      if (a == 2 && c == 3 &&
           b == 4)
Comment 4 Olivier Thomann CLA 2004-03-15 13:28:55 EST
*** Bug 54642 has been marked as a duplicate of this bug. ***
Comment 5 Olivier Thomann CLA 2004-03-15 13:29:33 EST
Defer to M9 because of 1.5 effort.
Comment 6 Kurt Pruenner CLA 2004-03-21 11:44:56 EST
Isn't this a duplicate of bug 50296, or vice versa?

np: The Orb - Spanish Castles In Space (Live 93)
Comment 7 Olivier Thomann CLA 2004-04-16 12:49:18 EDT
*** Bug 50296 has been marked as a duplicate of this bug. ***
Comment 8 Olivier Thomann CLA 2004-04-30 16:06:51 EDT
Will reconsider post 3.0.
Comment 9 Alvin Thompson CLA 2005-08-02 13:26:35 EDT
post 3.0!
Comment 10 Nick Crossley CLA 2007-04-25 12:26:36 EDT
Given the discussions in bug 178923, could someone please reconsider the state of this bug.  I presume it is too late for 3.3, but can it be considered for Eclipse 3.4 (or whatever the next release number is)?  RESOLVED LATER is not a satisfactory state for a bug to be in for 3 years.
Comment 11 Jerome Lanneluc CLA 2008-08-25 06:11:34 EDT
Reopening since 'LATER' resolution is deprecated
Comment 12 Mateusz Matela CLA 2016-01-14 17:12:12 EST

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