Simple Blocks in One line doesn't format methods and constructors

Issue #1765 resolved
Piotr Kożuchowski created an issue

When Simple block in one line is checked, I assume method and contructors without body should be one liners, but the closing bracket ends up in new line:

Expected:

Comments (4)

  1. Scott Wells repo owner

    The Java formatter has a distinct setting, "Simple methods in one line", that handles this. The Apex formatter doesn't currently have such a setting, but adding one should be pretty simple and helps to complete its functionality. I'll take care of it.

  2. Piotr Kożuchowski reporter

    Thanks Scott. You should provide a “Beer address” on site, so I could shower you with beer for all the hard work you are doing 😃

  3. Log in to comment