Xcode源码自动格式化 [英] Xcode source automatic formatting
问题描述
我现在正在学习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屋!