In previous versions of Xcode it was possible to create a key binding to delete the current line. There were different solutions and they are described for exam
Got it! This works in XCode 4.3 through 4.5 and requires no extra applications and is XCode specific.
This solution is basically the same as the Duplicate Line command described here:
It's at /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist
Note that:
elementAdd this text just ABOVE the close of the at the bottom of this file
Custom
Delete Current Line In One Hit
moveToEndOfLine:, deleteToBeginningOfLine:, deleteToEndOfParagraph:
Note that:
so there is a after thisSave this and open XCode
See the screenshots for this in the linked answer or do this:
This should do it but for one caveat. I could never get XCode to save the new binding. The same problem is described here though my workaround had a slight variation:
What a rigmarole, eh? But it works. Now I have Ctrl+D mapped to delete the entire current line in XCode 4.3 on Lion.