如何获得"缩进选项卡,配合空格"在第X code行为? [英] How to get "indent with tabs, align with spaces" behavior in Xcode?

查看:180
本文介绍了如何获得"缩进选项卡,配合空格"在第X code行为?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用标签进行缩进和空格的排列。 像这样(箭头显示标签和点显示空格)。

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

在QtCreator你可以设置在标准preferences这样的编码风格。 我找不到实现X code中的同一个目标的方式。你能告诉我,如果这是可能的吗? 可能有一个插件是什么?

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?

更新: 下面是它可以在QtCreator可以实现:

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

P.S。请不要试图说服我,用空格只/制表符只比较好,否则这个问题会升级成另外holywar:)

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 :)

在了解我想要实现:缩进用制表符,配合空格。 Vim的技巧维基

更新2:我刚刚提交了一份苹果雷达错误报告(增强)rdar:// 22285639。这是href="https://openradar.appspot.com/radar?id=5625019916877824" rel="nofollow">打开雷达的

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

更新3:我收到一个答案来自苹果。我的错误是rdar的副本:// 8165023。

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

推荐答案

在X code> preferences( ):

In Xcode > Preferences (,):

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

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

这篇关于如何获得"缩进选项卡,配合空格"在第X code行为?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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