How do I indent Xcode from the beginning of the previous line?

ok, maybe an insanely n00b question or something I missed in Xcode prefixes: when hitting return instead of Xcode-syntax indenting smartly indenting any brackets I used on the previous line, how can I do this so Xcode indents only from the beginning of the previous line? In the following picture, the first block of code is what I got, the second block of code is what I want.

Visual presentation: visual presentation http://img704.imageshack.us/img704/289/screenshot20100504at122.png

+2


a source to share


1 answer


As an alternative to formatting xcodes, you can use Uncrustify . It can understand Objective as well as many other languages. I installed mine as a script in xcode and assigned a hotkey to it so that it reformat the entire file or just the selected code.



+1


a source







All Articles