Xcode中的代码格式 [英] Code Formatting In Xcode

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

问题描述

无论如何,都可以像在Eclipse或Netbenas中一样在Xcode中格式化代码。我没有在菜单中找到任何选项,是否有任何热键或者它根本不在Xcode中?

Is there anyway to format the code in Xcode like you can do in Eclipse or Netbenas. I have not found any option in menu, is there any hot key for this or its simply not in Xcode?

推荐答案

选择一些然后输入文本:Edit-> Format-> Re-Indent

Select some text and then: Edit->Format->Re-Indent

您可以将其绑定到首选项中的热键上。

You can bind this to a hotkey in the preferences.

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

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