Skip to content

Instantly share code, notes, and snippets.

@lateshift
Last active October 20, 2021 08:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lateshift/8ebcbdcdeb390c05fb0ba5326f41bebb to your computer and use it in GitHub Desktop.
Save lateshift/8ebcbdcdeb390c05fb0ba5326f41bebb to your computer and use it in GitHub Desktop.
Duplicate Lines in XCode-PROPER

Add (proper) Line(s) duplication to XCode

Add to /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/IDETextKeyBindingSet.plist

<key>Duplication</key>
<dict>
    <key>Duplicate Current Lines Down</key>
    <string>selectParagraph:, delete:, yank:, moveToBeginningOfParagraph:, yank:, moveUp:, moveToEndOfParagraph:</string>
    <key>Delete Current Line</key>
    <string>deleteToBeginningOfLine:, moveToEndOfLine:, deleteToBeginningOfLine:, deleteBackward:, moveDown:, moveToBeginningOfLine:</string>
</dict>

Works with XCode 13

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