| Summary: | "Binary expressions" formatting (code style) error | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Gil Barash <scobido1984> |
| Component: | cdt-editor | Assignee: | Project Inbox <cdt-editor-inbox> |
| Status: | RESOLVED WORKSFORME | QA Contact: | Anton Leherbauer <aleherb+eclipse> |
| Severity: | normal | ||
| Priority: | P3 | CC: | cdtdoug, yevshif, zeratul976 |
| Version: | 8.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
I just tried this, and I get the second (expected) result. |
When customizing the code style, under the "line wrapping" tab, choose the "Binary expressions" element in the tree. Set "indent policy" to "wrap only when necessary" and "indent on column". This is the result: int foo() { int sum = 100 + 200 + 300 + 400 + 500 + 600 + 700 + 800; While I would expect (which is similar to what I get when choosing "default indentation"): int foo() { int sum = 100 + 200 + 300 + 400 + 500 + 600 + 700 + 800;