Xcode 中的基本缩进设置

发布于 12-07 00:02 字数 255 浏览 2 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

如此安好2024-12-14 00:02:26

您可以挂钩代码美化器来清理选项卡: 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文