I’m looking for a way to map some hot-keys to ‘delete the line that my cursor is on’ in Xcode. I found ‘delete to end of line’ and ‘delete to beginning of line’ in the text key bindings, but I am missing how to completely delete the line no matter what I have selected. TextMate has this functionality mapped to Ctrl+Shift+D and I’d like the same thing if possible. Any ideas?
Share
You can set up a system-wide key binding file that will apply to all Cocoa apps.
To do what you want it should like like this:
In your home folder, Library/KeyBindings/DefaultKeyBinding.dict
I believe if you only want it to apply to Xcode you can name the file
PBKeyBinding.dictinstead but I didn’t try that myself. You can read more about this system here and here.