Up until Xcode 8.0, it was possible to customize IDETextKeyBindingSet.plist file. However, now it seems like modifying this file causes Xcode to stop behaving normally (e.g. arr
Confirmed, still working in Xcode 11.2.1 on macOS Catalina 10.15.4
open /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/IDETextKeyBindingSet.plist
Add the following lines into the root dictionary
Sublime Commands
Cut Current Line
selectLine:, cut:
Copy Current Line
selectLine:, copy:
Duplicate Current Line
selectLine:, copy:, moveToBeginningOfLine:, paste:, moveToEndOfLine:
Key Bindings
settings and assign any shortcut you want to the new three commands. Just search for their key
s.It's a shame that in the 21st century you still have to manually add such basic shortcuts.
The steps have to be repeated after every update of Xcode.