Xcode should provide Organize Imports function
| Originator: | kristopherdjohnson | ||
| Number: | rdar://17948801 | Date Originated: | 07-Aug-2014 03:06 PM |
| Status: | Duplicate/10969032 | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 5 and Xcode 6 beta |
| Classification: | Enhancement | Reproducible: | Not applicable |
Summary: It would be helpful if Xcode provided a mechanism to automatically manage the #import, @import, and #include directives in a source file. Ideally, it would do the following: - Remove unneeded directives (that is, imports of modules/headers declaring types and functions that are not used in the current source file) - Sort the directives alphabetically or by some other useful ordering scheme There should be a project-wide setting that controls whether this feature is automatically applied whenever a source file is saved. Steps to Reproduce: N/A Expected Results: N/A Actual Results: N/A Version: Xcode 5 and Xcode 6 Notes: This functionality is provided by IDEs for other platforms (Eclipse, Visual Studio, etc.) Configuration: OS X 10.9.1 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!