随着大量的Xcode新手的涌入,我相信会有很多Xcode的技巧和技巧可以分享。

你的呢?


当前回答

自动完成键盘快捷键

选项卡⇥或控制⌃/:选择下一个自动完成参数。

Shift: Tab⇥或Shift: Control⌃/:选择之前的自动完成参数。

Escape⎋:显示自动完成弹出列表。

其他回答

在项目模板中设置公司名称的另一种方法是:

在地址本中为自己添加一个联系人 将联系人中的公司字段编辑为您的公司名称 现在选择您的联系人,然后转到菜单,选择卡片->使这是我的卡片 您的联系人卡片现在应该在地址簿粗体确认这一点。

这应该会将您的公司名称添加到所有项目模板中,并为其他应用程序提供更多的自动填充信息!

按左/按右键导航变量或方法名中的单词。没有这个我活不下去。

Cmd+Option+O to open a file in a separate window. Can configure Tab to always indent. I frequently use it to indent an entire file. Ctrl+Arrow keys to move between camel case words. If you have OneTwo, you can move from One to Two with Ctrl+Right arrow. You can use emacs bindings, there's even kill ring! I use the Ctrl+w and Cmd+C together when I need to copy two different pieces of text. In the documentation browser, you can restrict your searches to a particular library, e.g., just iOS 4.2 library. This helps me focus on API available only on a particular iOS/Mac version of the SDK. Cmd+Shift+A to build and analyze.

放大编辑器

如果窗口同时显示细节视图和编辑器视图,则可以放大编辑器,将编辑器视图展开到窗口的全部高度。(这一点很容易发现,但很多人似乎忽略了它。)

您可以使用以下方法之一来做到这一点:

命令⌘Shift⇧E 查看>放大编辑器 拖动分隔器(在编辑器之间) 窗口和上面的文件列表) 向上。

完整的快捷方式列表可以在这里找到:http://iphonehuston.blogspot.com/2009/08/shortcuts-for-xcode.html