-
Notifications
You must be signed in to change notification settings - Fork 620
Open
Description
Does anyone know how to make Xcode auto-indent blocks correctly?
What I mean is that, according to this guide and to what I think is a much cleaner and readable code, blocks should be indented like the following:
Preferred:
// blocks are easily readable
[UIView animateWithDuration:1.0 animations:^{
// something
} completion:^(BOOL finished) {
// something
}];Not Preferred:
// colon-aligning makes the block indentation hard to read
[UIView animateWithDuration:1.0
animations:^{
// something
}
completion:^(BOOL finished) {
// something
}];But Xcode keeps wrongly indenting the inside-block code every semi-colon I type!
JohnCoates and core-code
Metadata
Metadata
Assignees
Labels
No labels