新建 : MSVC.idekeybindings 文件,copy 下边的内容到里边。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Menu Key Bindings</key>
<dict>
<key>Key Bindings</key>
<array>
<dict>
<key>Action</key>
<string>undo:</string>
<key>Alternate</key>
<string>NO</string>
<key>CommandID</key>
<string>Xcode.IDEKit.CmdDefinition.Undo</string>
<key>Group</key>
<string>Edit Menu</string>
<key>GroupID</key>
<string>Xcode.IDEKit.MenuDefinition.Main</string>
<key>GroupedAlternate</key>
<string>NO</string>
<key>Keyboard Shortcut</key>
<string>^z</string>
<key>Navigation</key>
<string>NO</string>
<key>Title</key>
<string>Undo</string>
</dict>
<dict>
<key>Action</key>
<string>redo:</string>
<key>Alternate</key>
<string>NO</string>
<key>CommandID</key>
<string>Xcode.IDEKit.CmdDefinition.Redo</string>
<key>Group</key>
<string>Edit Menu</string>
<key>GroupID</key>
<string>Xcode.IDEKit.MenuDefinition.Main</string>
<key>GroupedAlternate</key>
<string>NO</string>
<key>Keyboard Shortcut</key>
<string>^@z</string>
<key>Navigation</key>
<string>NO</string>
<key>Title</key>
<string>Redo</string>
</dict>
<dict>
<key>Action</key>
<string>cut:</string>
<key>Alternate</key>
<string>NO</string>
<key>CommandID</key>
<string>Xcode.IDEKit.CmdDefinition.Cut</string>
<key>Group</key>
<string>Edit Menu</string>
<key>GroupID</key>
<string>Xcode.IDEKit.MenuDefinition.Main</string>
<key>GroupedAlternate</key>
<string>NO</string>
<key>Keyboard Shortcut</key>
<string></string>
<key>Navigation</key>
<string>NO</string>
<key>Title</key>
<string>Cut</string>
</dict>
<dict>
<key>Action</key>
<string>copy:</string>
<key>Alternate</key>
<string>NO</string>
<key>CommandID</key>
<string>Xcode.IDEKit.CmdDefinition.Copy</string>
<key>Group</key>
<string>Edit Menu</string>
<key>GroupID</key>
<string>Xcode.IDEKit.MenuDefinition.Main</string>
<key>GroupedAlternate</key>
<string>NO</string>
<key>Keyboard Shortcut</key>
<string></string>
<key>Navigation</key>
<string>NO</string>
<key>Title</key>
<string>Copy</string>
</dict>
<dict>
<key>Action</key>
<string>copySymbolName:</string>
<key>Alternate</key>
<string>YES</string>
<key>CommandID</key>
<string>Xcode.IDEKit.CmdDefinition.CopySymbolName</string>
<key>Group</key>
<string>Edit Menu</string>
<key>GroupID</key>
<string>Xcode.IDEKit.MenuDefinition.Main</string>
<key>GroupedAlternate</key>
<string>NO</string>
<key>Keyboard Shortcut</key>
<string>^$</string>
<key>Navigation</key>
<string>NO</string>
<key>Title</key>
<string>Copy Symbol Name</string>
</dict>
<dict>
<key>Action</key>
<string>copyQualifiedSymbolName:</string>
<key>Alternate</key>
<string>YES</string>
<key>CommandID</key>
<string>Xcode.IDEKit.CmdDefinition.CopyQualifiedSymbolName</string>
<key>Group</key>
<string>Edit Menu</string>
<key>GroupID</key>
<string>Xcode.IDEKit.MenuDefinition.Main</string>
<key>GroupedAlternate</key>
<string>NO</string>
<key>Keyboard Shortcut</key>
<string>^~$</string>
<key>Navigation</key>
<string>NO</string>
<key>Title</key>
<string>Copy Qualified Symbol Name</string>
</dict>
<dict>
<key>Action</key>
<string>paste:</string>
<key>Alternate</key>
<string>NO</string>
<key>CommandID</key>
<string>Xcode.IDEKit.CmdDefinition.Paste</string>
<key>Group</key>
<string>Edit Menu</string>
<key>GroupID</key>
<string>Xcode.IDEKit.MenuDefinition.Main</string>
<key>GroupedAlternate</key>
<string>NO</string>
<key>Keyboard Shortcut</key>
<string></string>
<key>Navigation</key>
<string>NO</string>
<key>Title</key>
<string>Paste</string>
</dict>
</array>
<key>Version</key>
<integer>3</integer>
</dict>
<key>Text Key Bindings</key>
<dict>
<key>Key Bindings</key>
<dict>
<key></key>
<array>
<string>moveToBeginningOfParagraph:</string>
<string>pageDown:</string>
<string>scrollPageUp:</string>
<string>scrollPageDown:</string>
</array>
<key>$</key>
<string>moveSubWordBackward:</string>
<key>$</key>
<string>moveSubWordForward:</string>
<key>^a</key>
<string>selectAll:</string>
<key>^</key>
<string>moveUpAndModifySelection:</string>
<key>^</key>
<string>moveDownAndModifySelection:</string>
<key>^</key>
<string>moveLeftAndModifySelection:</string>
<key>^</key>
<string>moveRightAndModifySelection:</string>
<key>^</key>
<string>moveToBeginningOfLineAndModifySelection:</string>
<key>^</key>
<string>moveToEndOfLineAndModifySelection:</string>
<key></key>
<string>deleteBackward:</string>
</dict>
<key>Version</key>
<integer>3</integer>
</dict>
</dict>
</plist>
保存到目录:
YourUserName/Library/Developer/Xcode/userdata/keybindings
下边,重启xcode 就可以使用新的快捷键了。