Xcode 8 uses incorrect indentation with Objective-C

Originator:rene.jc.dekker
Number:rdar://30233681 Date Originated:2017-1-27
Status:Open Resolved:
Product:Developer Tools (Xcode) Product Version:8.2.1 (8C1002)
Classification: Reproducible:Always
 
Summary:
Xcode 8 seems to want to indent everything between @implementation and @end. It will automatically insert indentation before e.g. method definitions. That is pretty annoying behaviour.

Steps to Reproduce:
1) Open any Objective-C file. 
2) Press return on an empty line, or after the final '}' of a method, anywhere between the @implementation and @end.  

Expected Results:
A new line to be inserted, and the cursor at the beginning of the line, with no indentation.

Actual Results:
Indentation is inserted (4 spaces in my case)

Version:
Xcode Version 8.2.1 (8C1002)
OS X Version 10.11.6 (15G1217)

Notes:
Movie which shows the behaviour is attached. 

Configuration:
Default settings for indentation

Attachments:
'IncorrectIndent.mov' was successfully uploaded.

Comments


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!