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

你的呢?


当前回答

当您在一个方法上使用代码完成,并且它有多个参数时,使用CTRL + /移动到下一个需要填充的参数。

其他回答

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.

能够水平分割当前编辑器窗口,这对于宽屏监视器能够并排查看源文件和头文件非常有用。根据你使用的Xcode版本不同,有两种不同的方法。

在Xcode 3.0中,它位于首选项、键绑定、文本键绑定列表底部。

在Xcode 2.5中,它位于首选项、键绑定、菜单键绑定、视图菜单下。

自动完成键盘快捷键

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

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

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

使用AppKiDo浏览文档。

在Xcode中使用Accessorizer来完成一堆单调、重复的任务。

切换到头文件/源文件

选项命令⌘向上箭头↑ 查看>切换到头文件/源文件

在。m和。h文件之间切换。

在Xcode 4中,这是ctrl⌘向上箭头↑