title: How do you Tweak Xcode's auto-indentation of Objective C Parameters?
body: <p>Here's a snippet of code from my iOS app:</p>
  
  <pre><code>    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Do you like my hat?"
                                                      message:@"If so, please help spread the word by rating our app now?"
                                                     delegate:nil
                                            cancelButtonTitle:@"No Thanks"
                                            otherButtonTitles:@"Sure!", @"Maybe Later", nil
                            ];
  </code></pre>
  
  <p>Why does Xcode indent lines so bloody far? Being an old Perl, Ruby, and JavaScript monkey, I would be more inclined to indent it manually like this:</p>
  
  <pre><code>    UIAlertView *alert = [[UIAlertView alloc]
          initWithTitle:     @"Do you like my hat?"
          message:           @"If so, please help spread the word by rating our app now?"
          delegate:          nil
          cancelButtonTitle: @"No Thanks"
          otherButtonTitles: @"Sure!", @"Maybe Later", nil
      ];
  </code></pre>
  
  <p>So the parameter names and values are all left-aligned, and indented only one level (4 spaces for me). This uses far less screen real-estate, and it's less likely I'll have to deal with wrapping lines (which make the far-right indented stuff even trickier to read) on my MacBook Air.</p>
  
  <p>However, I assume there's some reason Apple prefers the first method, and therefore has Xcode indent that way. Or is there?</p>
  
  <p>So I have two question:</p>
  
  <ul>
  <li>How do you prefer to indent method parameters in your Objective C code?</li>
  <li>How do you tweak Xcode to format with your preferred indentation style?</li>
  </ul>
  
  <p>Not trying to start a holy war here; I'm more curious about what tend to be the best practices among Objective-C programmers, how Xcode helps with those practices, and to find out if there is a good reason for the default way Xcode does it.</p>
  
  <hr>
  
  <p><strong>Update:</strong> Commenters and answers point out that the default formatting aligns the parameters at their colons. I should have remembered that before posting, since I have of course noticed it, and when the longest item isn't indented much, it can look pretty nice. But I find that, usually, the longest item <em>is</em> indented quite a lot. For example:</p>
  
  <pre><code>UIAlertView *alert = [[UIAlertView alloc]
                            initWithTitle:@"Do you like my hat?"
                                  message:@"If so, please help spread the word by rating our app now?"
                                 delegate:nil
                        cancelButtonTitle:@"No Thanks"
                        otherButtonTitles:@"Sure!", @"Maybe Later", nil
                        ];
  </code></pre>
  
  <p>Why is that? Even if I wanted them to align at the colons (and I've often hand-formatted them to do so), it seems silly to indent them so much. Why does it insist on indenting to the level of the opening colon? Why not just one indentation level, with the closing bracket out-dented to show the end of the indentation "block"? For example:</p>
  
  <pre><code>UIAlertView *alert = [[UIAlertView alloc]
          initWithTitle:@"Do you like my hat?"
                message:@"If so, please help spread the word by rating our app now?"
               delegate:nil
      cancelButtonTitle:@"No Thanks"
      otherButtonTitles:@"Sure!", @"Maybe Later", nil
  ];
  </code></pre>
  
  <p>This seems to be a better default than <a href="http://google-styleguide.googlecode.com/svn/trunk/objcguide.xml" rel="nofollow">the Google style guide's line length recommendation</a>, no?</p>
  
  <p>Is there some way to tweak Xcode to format the parameters this way?</p>