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
Xcode
If you don't mind having that key binding in other apps, you could try setting it in the general Cocoa key bindings. This has an explanation.