Xcode 4.6.2: Auto-indentation of Obj-C dictionary/array literals
| Originator: | amorya | ||
| Number: | rdar://14467106 | Date Originated: | 17-Jul-2013 12:14 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 4.6.2 (4H1003) |
| Classification: | Other Bug | Reproducible: | Not Applicable |
Summary:
Xcode does not auto-indent Objective C literals with any level of sensibleness. For example, when making a dictionary, it should ensure that each line (containing a key and a value) should start to the right of the opening brace.
Steps to Reproduce:
Try to enter the following code, with newlines as typed here:
NSDictionary *entitiesDict = @{
@"links" : @[
@{
@"pos": @0,
@"len": @(self.radar.title.length),
@"url": radarLink}
]
};
Expected Results:
Indentation makes it look like this:
NSDictionary *entitiesDict = @{
@"links" : @[
@{
@"pos": @0,
@"len": @(self.radar.title.length),
@"url": radarLink
}
]
};
Actual Results:
Indentation makes it look like this:
NSDictionary *entitiesDict = @{
@"links" : @[
@{
@"pos": @0,
@"len": @(self.radar.title.length),
@"url": radarLink
}
]
};
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!