Simple Blocks in One line doesn't format methods and constructors
Issue #1765
resolved
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)
-
repo owner -
repo owner Committed for inclusion in the next release.
-
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
-
repo owner - changed status to resolved
Delivered in 2.1.5.2.
- Log in to comment
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.