Xcode duplicate line

  1. Go to this folder which contains dark side of the force:

    • Xcode 4.2 or prior: /Developer/Library/PrivateFrameworks/IDEKit.framework/Resources
    • Xcode 4.3 or later: /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources.
  2. Open IDETextKeyBindingSet.plist.

  3. Add a new dictionary and a new command item as the screenshot below (name them what you want):
    Editing the plist

    That’s: selectLine:, copy:, moveToEndOfLine:, insertNewline:, paste:, deleteBackward:

  4. Restart Xcode and go to Preferences – Key Bindings, search for your command.

  5. Set a key combination for the command:
    Key Bindings

  6. Finally unleashed the power of key bindings on Xcode… Enjoy it!

Leave a Comment

tech