Xcode - Duplicate Line Shortcut
1 . Go to this folder :
Xcode 4.2 or prior:
/Developer/Library/PrivateFrameworks/IDEKit.framework/Resources
Xcode 4.3 and later:
/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources
Then open the file :
IDETextKeyBindingSet.plist
2 . Create a dictonary named "Customized" ,
add key :
Duplicate Current Line
and value :
selectLine:, copy:, moveToEndOfLine:, insertNewline:, paste:, deleteBackward:
(be careful that the "space" is needed between the every Meta Commands)
3 . Restart Xcode and go to Preferences - Key Bindings, search "Dubplicate Current Line" . Finally , set a key shortcut combination for this command .
Additional :
You can override the default shortcuts by creating a new command set with your preferred shortcuts.
This new set is stored in :
~/Library/Developer/Xcode/UserData/KeyBindings/{you named}.idekeybindings.