我在 Xcode 4.5 中定义/自定义了一些键盘绑定,以便给我更好的打字体验。
只有捷径selectWord:
是Xcode原来定义的,其他的都是我自己加的。它们在 Xcode 4.5 中运行良好。但是在我将 Xcode 更新到 4.6 之后,它们不再工作,除了selectedWord
Xcode 定义的。
键绑定文件位于/Users/jason/Library/Developer/Xcode/UserData/KeyBindings/Default.idekeybindings
<key>Text Key Bindings</key>
<dict>
<key>Key Bindings</key>
<dict>
<key>@
</key>
<array>
<string>moveToEndOfLine:</string>
<string>insertNewline:</string>
</array>
<key>^$D</key>
<array>
<string>selectLine:</string>
<string>copy:</string>
<string>moveToEndOfLine:</string>
<string>insertNewline:</string>
<string>paste:</string>
<string>deleteBackward:</string>
</array>
<key>^$K</key>
<array>
<string>deleteToBeginningOfLine:</string>
<string>moveToEndOfLine:</string>
<string>deleteToBeginningOfLine:</string>
<string>deleteBackward:</string>
<string>moveDown:</string>
<string>moveToBeginningOfLine:</string>
</array>
<key>~w</key>
<string>selectWord:</string>
</dict>