如何在Xcode中获得智能选项卡(“缩进与选项卡,对齐空格”)的行为? [英] How to get smart tabs ("indent with tabs, align with spaces") behavior in Xcode?

查看:364
本文介绍了如何在Xcode中获得智能选项卡(“缩进与选项卡,对齐空格”)的行为?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾经使用制表符来缩进和空格对齐。
像这样(箭头显示制表符和圆点显示空格)。





在QtCreator中,您可以在标准首选项中设置此类编码样式。
我找不到在Xcode中实现相同目标的方法。你能告诉我如果可能吗?
可能有插件吗?



UPDATE:
下面是如何在QtCreator :



PS请不要试图说服我,只使用空格/标签只是更好,否则这个问题会变成另一个圣城:)



m尝试实现:使用制表符缩进,与空格对齐。 Vim Tips Wiki



UPDATE 2:我刚刚提交了一个Apple Radar错误报告(增强)rdar: / 22285639。此处位于开放式雷达上。



更新3:我收到了苹果的回答。我的错误是rdar的重复:// 8165023。在Xcode>偏好设置( )中:

解决方案

p>



如果我正确理解你的问题,这应该为你做。


I used to use tabs for indentation and spaces for alignment. Like so (arrows show tabs and dots show spaces).

In QtCreator you can set such coding style in standard preferences. I can't find the way to achieve the same goal in Xcode. Could you please tell me if it is possible? May be there is a plugin for that?

UPDATE: Here is how it can be achieved in QtCreator:

P.S. Please, don't try to persuade me that using spaces only/tabs only is better, otherwise this question will turn into another holywar :)

Once more about what I'm trying to achieve: Indent with tabs, align with spaces. Vim Tips Wiki.

UPDATE 2: I've just submitted an Apple Radar bug-report (enhancement) rdar://22285639. Here it is on the open radar.

UPDATE 3: I received an answer from Apple. My bug is a duplicate of rdar://8165023.

解决方案

In Xcode > Preferences (,):

If I understand your question correctly, this should do it for you.

这篇关于如何在Xcode中获得智能选项卡(“缩进与选项卡,对齐空格”)的行为?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆