开发者

Basic indentation settings in Xcode

开发者 https://www.devze.com 2023-04-07 21:13 出处:网络
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

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 t开发者_运维技巧his 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).


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号