Community
Participate
Working Groups
Can a new Formatting option be added to allow for statements to occur on the same line as a control statement if not enclosed in braces? for instance: if (Constants.DEBUG) logger.debug("returning success"); It seems like a previous version of Eclipse allowed for this, but it now splits.
Java code formatter is contributed by JDT Core.
The option exists. It will be available when the code formatter preference page is ready.
Please check the new preferences page in the latest integration build and let me know if this is handled by the new formatter.
This is done changing the code formatter options for the formatting of the if statement.
Fixed in HEAD.
Verified for 3.0M6