随着大量的Xcode新手的涌入,我相信会有很多Xcode的技巧和技巧可以分享。
你的呢?
随着大量的Xcode新手的涌入,我相信会有很多Xcode的技巧和技巧可以分享。
你的呢?
当前回答
触控板:
向上滑动三个手指-在头文件和源文件之间切换,这比Cmd + Opt + Up更容易; 向下滑动三个手指-在选择类或方法时切换声明和定义,目前发现这两种; 向左滑动三个手指-返回(Cmd + Opt + left); 向右滑动三个手指-前进(Cmd + Opt +右);
用Xcode 3.2.5测试。
其他回答
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.
我发现使用快捷方式来构建/清理和运行你的项目真的节省了我一些时间:
Cmd-R:构建并运行 Cmd-Y:构建和调试 Cmd-Shift-Enter:停止运行项目 Cmd-Shift-K:清洁构建
完整的快捷方式列表可以在这里找到:http://iphonehuston.blogspot.com/2009/08/shortcuts-for-xcode.html
能够水平分割当前编辑器窗口,这对于宽屏监视器能够并排查看源文件和头文件非常有用。根据你使用的Xcode版本不同,有两种不同的方法。
在Xcode 3.0中,它位于首选项、键绑定、文本键绑定列表底部。
在Xcode 2.5中,它位于首选项、键绑定、菜单键绑定、视图菜单下。
切换到头文件/源文件
选项命令⌘向上箭头↑ 查看>切换到头文件/源文件
在。m和。h文件之间切换。
在Xcode 4中,这是ctrl⌘向上箭头↑