Xcode源码自动格式化 [英] Xcode source automatic formatting

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

问题描述

作为一名C#开发人员,我非常依赖Visual Studio 2008中的自动格式化。具体来说,我将使用 CTRL + K D 键盘快捷键,可以在我的草率实施之后强制重做。

我现在正在学习Objective-C,并且在Xcode中缺少某些特性,但是可能没有一个和格式化快捷方式一样痛苦。我的谷歌搜索没有内置任何东西,但似乎有一些黑客。我错过了一些东西,或者这个功能本身不存在于Xcode中吗?

解决方案

不幸的是,Xcode没有任何东西就像VS或Jalopy for Eclipse一样可用。有一些不同的功能,如 Structure>重新缩进以及将代码粘贴到源文件时使用的自动格式。不过,我完全和你在一起。肯定有应该是在那里帮助格式化问题。


As a C# developer, I have become highly dependent on the automatic formatting in Visual Studio 2008. Specifically, I will use the CTRL + K , D keyboard shortcut to force things back into shape after my sloppy implementation.

I am now trying to learn Objective-C and am missing certain features in Xcode, but probably none are quite as painful as the formatting shortcut. My Google searches have yielded nothing built in, though it seems there are some hacks. Am I missing something or does this feature not exist natively in Xcode?

解决方案

Unfortunately, Xcode doesn't have anything nearly as extensive as VS or Jalopy for Eclipse available. There are SOME disparate features, such as Structure > Re-Indent as well as the auto-formatting used when you paste code into your source file. I am totally with you, though; there definitely should be something in there to help with formatting issues.

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

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