是否可以在 Xcode 中为每个项目(甚至每个文件)设置缩进设置? [英] Is it possible to set indent settings in Xcode per project (or per file, even)?
问题描述
我从事的一些项目使用相当于 3 或 4 个空格的制表键设置,而另一个需要实际的制表符.另一个根据目录将两者混合.
Some projects I work in uses tab key settings that equate to 3 or 4 spaces and another wants actual tabs. Another mixes the two depending on directory.
有没有办法为每个项目或每个文件设置这些设置?如果没有,是否有人有聪明的方法来处理这个问题?(除了记住你应该使用哪个设置并在开始编辑之前更改它")
Is there some way to set these settings per project, or even better, per file? If not, does someone have a clever way of dealing with this? (besides "just remember which setting you should use and change it before you start editing")
推荐答案
更新:此答案仅适用于 Xcode3.对于较新的版本,请参阅 James Turner 的回答.
是的,转到视图 > 文本 > 选项卡设置...
Yes, go to View > Text > Tab Settings...
您可以在此处指定将保存在项目中的(特定于文件的)缩进设置.
There you specify the (file-specific) indentation settings which will be saved in the project.
这篇关于是否可以在 Xcode 中为每个项目(甚至每个文件)设置缩进设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!