Skip to content

Instantly share code, notes, and snippets.

@nonkr
Forked from gdavis/gist:2829437
Last active August 29, 2015 13:59
Show Gist options
  • Save nonkr/10538941 to your computer and use it in GitHub Desktop.
Save nonkr/10538941 to your computer and use it in GitHub Desktop.
<key>GDI Commands</key>
<dict>
<key>GDI Duplicate Selected Line</key>
<string>selectLine:, copy:, moveToEndOfLine:, insertNewline:, paste:, deleteBackward:</string>
<key>GDI Delete Selected Line</key>
<string>moveToEndOfLine:, deleteToBeginningOfLine:, deleteBackward:, moveDown:, moveToEndOfLine:</string>
<key>GDI Move Selected Line Up</key>
<string>selectLine:, cut:, moveUp:, moveToBeginningOfLine:, insertNewLine:, paste:, moveBackward:</string>
<key>GDI Move Selected Line Down</key>
<string>selectLine:, cut:, moveDown:, moveToBeginningOfLine:, insertNewLine:, paste:, moveBackward:</string>
<key>GDI Insert Line Above</key>
<string>moveUp:, moveToEndOfLine:, insertNewline:</string>
<key>GDI Insert Line Below</key>
<string>moveToEndOfLine:, insertNewline:</string>
</dict>
@nonkr
Copy link
Author

nonkr commented Apr 12, 2014

Find:
/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/IDETextKeyBindingSet.plist

Add this dictionary to the PLIST and then reopen Xcode and go into Xcode -> Preferences -> Key Bindings and add custom key bindings for these commands. Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment