Xcode 中的基本缩进设置
Xcode 3.2.6 中的默认设置会执行一些自动缩进:输入 if (something)
并按回车键(当光标位于右括号右侧时)会自动将光标缩进一个制表符。 如何关闭此功能?
我尝试关闭“语法感知缩进”,但这并不能解决问题。在上面的示例中按回车键仍然会缩进光标(在本例中它与 if
对齐)。
我的最终目标是避免“杂散标签”(带有标签的空白行)。
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).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

您可以挂钩代码美化器来清理选项卡: http ://robertjpayne.com/post/9092159751/using-uncrustify-directly-in-xcode-4
You could hook in a code beautifier to clean up the tabs afterwards: http://robertjpayne.com/post/9092159751/using-uncrustify-directly-in-xcode-4