Skip to content

Instantly share code, notes, and snippets.

@marcolabreu
Last active July 21, 2020 08:08
Show Gist options
  • Save marcolabreu/869b48afcde475c9b76f748aebe3fdd8 to your computer and use it in GitHub Desktop.
Save marcolabreu/869b48afcde475c9b76f748aebe3fdd8 to your computer and use it in GitHub Desktop.
Add line duplication to Xcode key bindings located at /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/
<?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>
<!-- Lots of code already there -->
<!-- Add the following key and dict after installing or updating Xcode -->
<key>Duplication</key>
<dict>
<key>Duplicate Line</key>
<string>moveToBeginningOfLine:, deleteToEndOfLine:, yank:, insertNewline:, moveToBeginningOfLine:, yank:</string>
<key>Duplicate Lines</key>
<string>selectLine:, copy:, moveToEndOfLine:, insertNewline:, paste:, deleteBackward:</string>
</dict>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment