Mikkel
Mikkel

Reputation: 91

how to make Xcode indentation from beginning of previous line?

ok, possibly insanely n00b question or something i have overlooked in Xcode prefs: On pressing return, in stead of Xcode's syntax-aware indentation doing smart indent from whatever brackets i've used on the previous line, how can I make it so Xcode indents just from the beginning of the previous line? From the picture below, first block of code is what i got, second block of code is what I want.

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

Upvotes: 2

Views: 425

Answers (1)

drekka
drekka

Reputation: 21903

As an alternative to xcodes formatting, you can use Uncrustify. It can understand Objective as well as a variety of other languages. I set mine up as a script in xcode and assigned it a hot key so that it reformats the whole file or just the selected code.

Upvotes: 1

Related Questions