3

The default settings in Xcode 3.2.6 do some automatic indentation: typing if (something) and pressing return (when the cursor is to the right of the closing paren) automatically indents the cursor by one tab. How can I turn this feature off?

I tried turning off "syntax-aware indenting" however this doesn't solve the problem. Pressing return in the above example still indents the cursor (it's aligned with if in this case).

My ultimate goal is to avoid "stray tabs" (blank lines that have tabs).

1
  • 1
    Don't worry about it. When you get to Xcode 4 everything will change anyway. (And what real harm do "stray tabs" cause?) Commented Dec 21, 2011 at 12:18

1 Answer 1

1

You could hook in a code beautifier to clean up the tabs afterwards: http://robertjpayne.com/post/9092159751/using-uncrustify-directly-in-xcode-4

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.