Xcode think that this:
NSArray *persons = @[
@{
@"name": @"Bob",
@"pet": @"cat"
},
@{
@"name": @"Alice",
@"pet": @"dog"
}
];
would be better indented like so:
NSArray *persons = @[
@{
@"name": @"Bob",
@"pet": @"cat"
},
@{
@"name": @"Alice",
@"pet": @"dog"
}
];
Can you teach Xcode about indenting Objective-C literals?
Is there another alternative?
Note: I already know I can "force" indent with cmdopt], however this will go away when copying/pasting and will not fix the problem.
Paste and Preserve Formatting
and the keyboard shortcut is opt+shift+cmd+V – Gottfried