Xcode是否具有代码自动格式功能? [英] Does Xcode have code autoformat feature?

查看:104
本文介绍了Xcode是否具有代码自动格式功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在Xcode IDE中自动格式化源代码?

Is any way to autoformat a source code in the Xcode IDE?

推荐答案

实际上没有自动形式选项Xcode。

There isn't really an autoformat option in Xcode.

有一个选项 ^ I (Control-I)重新缩进代码,这将是根据首选项中设置的标签宽度重新对齐代码,但这大概就是它。

There is an option ^I (Control-I) to re-indent the code, which will re-align the code according to the tab width set in your preferences, but that's about as far as it goes.

你可能会有更好的运气,如文本编辑器,如TextMate ?我不确定,但我知道它支持Objective-C并且有一些宏,可能有重新格式化选项?

You might have better luck with a text editor like TextMate? I don't know for certain, but I know it supports Objective-C and has some macros, there may be a reformat option?

这篇关于Xcode是否具有代码自动格式功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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