Code formatting issue with braces

Originator:macmade
Number:rdar://32743715 Date Originated:June 13 2017, 8:22 PM
Status:Duplicate (31861866) Resolved:
Product:Developer Tools Product Version:
Classification:UI Reproducible:Always
 
Summary:
There's a few issues with code formatting on the Xcode 9 beta, when using braces.

Attached are screenshots of my Xcode editor settings, as well as a movie illustrating the issue.

----------

Steps to Reproduce:
As you can see in the attached movie, when creating an indented set of braces, like:

    {}

When hitting return while inside the braces, the closing brace is not indented as expected:

    {
        /* ... */
}

----------

Expected Results:
The closing brace should stay on the same column as the opening brace.

----------

Observed Results:
Closing brace is not indented at all.

----------

Version:
Xcode Version 9.0 beta (9M136h)
macOS Version 10.13 beta (17A264c)

Comments

Duplicate of 31861866


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!