随着大量的Xcode新手的涌入,我相信会有很多Xcode的技巧和技巧可以分享。
你的呢?
随着大量的Xcode新手的涌入,我相信会有很多Xcode的技巧和技巧可以分享。
你的呢?
当前回答
CTRL + Alt +⌘+ r清除日志
其他回答
⇧⌘。它会构建和分析,这意味着Xcode会警告你可能的泄漏。
我最喜欢的是这些常用的编辑器快捷方式:
⌘+ 0将您从调试模式返回到编辑器。 ⌘+ Shift + R带您从调试模式到编辑器视图(项目模式) ⌘+ Shift + E“最大化”编辑器(当你有构建结果等显示在编辑器上方时,这非常有用,你只是想让你的源编辑器更高) Ctrl + 2显示当前代码的大纲 ⌘+ Return运行应用程序 ⌘+ Shift + Return结束应用程序
Cmd + ~(波浪号-看起来很奇怪的按钮…)
在任何打开的Xcode窗口之间切换-也当多个项目打开时。
在调试器启动时打开调试窗口 更改图像中显示的调试首选项。 要在每次应用程序运行时清除控制台日志,请检查自动清除调试控制台。
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.