Bug 215354 - [formatter] Cannot set indent of closing braces
Summary: [formatter] Cannot set indent of closing braces
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 485753 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-01-15 10:19 EST by H.M. Brand CLA
Modified: 2016-05-03 16:31 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description H.M. Brand CLA 2008-01-15 10:19:49 EST
Our company coding style is to indent the closing braces of blocks:

if (expression) [
    statement;
    if (expression) {
        statement;
        }
    else {
        statement;
        }
    }

We do this in sh, C, and perl. Likewise in XML, and HTML:

<table>
  <tr>
    <td>
      ......
      </td>
    <td>
      ......
      </td>
    </tr>
  </table>

JDT allows tons of (personal) settings but lacks this *vital* preference.
Comment 1 Mateusz Matela CLA 2016-05-03 16:31:17 EDT
*** Bug 485753 has been marked as a duplicate of this bug. ***