RFE: Per-Xcode project indentation preferences with optional per-file overrides
| Originator: | jeremyw.sherman | ||
| Number: | rdar://9783336 | Date Originated: | 15-Jul-2011 01:51 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | |
| Classification: | Feature (New) | Reproducible: | N/A |
15-Jul-2011 01:51 PM Jeremy Sherman: Summary: Indentation preferences are currently application-wide: * Prefer indent with: tab/spaces * Tab width * Indent width This causes a problem when you switch between projects with different indentation styles. It can also cause a problem within a project when that project includes code from another project in a different style. Making indentation preferences a project-level preference with the ability to override on a per-file basis would fix this. The current application preference would remain but would act as the default style for newly created projects and for projects that don't specify a style (old projects). Steps to Reproduce: * Work on a project that uses 4-space with spaces indentation. * Switch to a project that uses 3-space with tabs indentation the next day. Expected Results: * No problem! Indentation is below your notice, and has been working just fine without you, thanks to the project level settings stored in the .pbxproj file. Actual Results: * Realize 2 hours in that you've been indenting wrong the whole time. * Change your indentation preferences. * Spend several boring minutes deleting spaces, since ^I does not reformat code that sort of seems already correctly formatted, even if it's not. Regression: N/A. This is a feature request. Notes: This would be like modelines in Emacs or vim, but less in your face (no decorator lines in each file) and more convenient (because the notion of a project prevents you from having to respecify the setting for each and every file).
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!