Bug 360107 - Additional option needed for wrapping operators by the formatter.
Summary: Additional option needed for wrapping operators by the formatter.
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 8.0   Edit
Hardware: All All
: P3 enhancement with 9 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-06 10:45 EDT by Daniel CLA
Modified: 2024-01-15 13:18 EST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel CLA 2011-10-06 10:45:59 EDT
Build Identifier: 20110615-0604

Eclipse C/C++ Development Tools

Version: 8.0.0.201106081058
Build id: 201106081058

The code style formatter wraps alwasy before an operator. It should be possible to wrap either before or after an operator.

Example:
int a = x + y;

Formatter can wrap to:
int a = x
        + y;

We would need:
int a = x +
        y;

Reproducible: Always
Comment 1 Harinath Atmaram CLA 2013-06-24 15:37:10 EDT
I would also like this feature please!
Comment 2 bataliero bataliero CLA 2017-07-04 05:16:00 EDT
So do I. Wrapping before operator looks ugly for me.
Comment 3 Étienne Alepins CLA 2024-01-15 13:18:13 EST
Same need here