File-specific indentions not respected for Objective-C/C++ files in the assistant editor
Originator: | alex | ||
Number: | rdar://21670792 | Date Originated: | 03-Jul-2015 06:52 PM |
Status: | Open | Resolved: | |
Product: | Developer Tools | Product Version: | Xcode 6.4 (6E35b) and Xcode 7.0 beta (7A120f) |
Classification: | UI/Usability | Reproducible: | Always |
Summary: Additionally to the global indention settings (tabs vs. spaces) reachable via Xcode -> Preferences… -> Text Editing -> Indention, these settings can be configured for each file using the file inspector. However if a file whose indention settings differ from the default is opened in the assistant editor and Re-Indent is run, the global indention settings are used Steps to Reproduce: 1. Create an empty Xcode project with Objective-C or C++ as the language 2. Assuming you have Tabs set as your default, change the “indent using” setting to Spaces 3. Open this file in the assistant editor and choose Re-Indent Expected Results: The file should correctly be indented using spaces Actual Results: The file is indented using the Xcode default Version: Both Xcode 6.4 (6E35b) and Xcode 7.0 beta (7A120f) Notes: Configuration: This does not apply for swift files Attachments:
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!