随着大量的Xcode新手的涌入,我相信会有很多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.

其他回答

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.

可能不需要多说,但是如果你想使用字内导航,确保你改变了空格的预设键(在Expose & Spaces首选项窗格中),如果你使用它。

我切换空格使用Ctrl-Option左/右。

编辑:要将空格设置为Ctrl-Option左/右,选择“在空格之间切换:”弹出并按住Option键。第一项将从Ctrl方向键更改为Ctrl- option方向键。

当在多个键盘上使用Code Sense时,使用control +来显示可用的补全列表,control +。插入最有可能的补全符,并control + / & shift + control + /在占位符令牌之间移动。所有的键都在键盘的主行下面,这对肌肉记忆有好处。

如果你有一个多点触控功能的Mac -使用MultiClutch来映射一些由鼠标手势描述的击键。

我用三个手指向前和向后在文件历史中向前和向后移动(cmd-alt-.),并在.h和.m之间切换。

⌘-[和⌘-]缩进和取消所选文本。使清理源代码更加容易。