How do I create a Delete-Line Keyboard shortcut in Xcode 8? The Xcode 3 solutions do not work anymore

后端 未结 13 1469
故里飘歌
故里飘歌 2020-12-07 10:38

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

13条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-07 10:49

    Rhubarb's answer is correct and works but one thing, there is more simple command in plist file. Follow all instructions of Rhubarb's but

    instead of

    moveToEndOfLine:, deleteToBeginningOfLine:, deleteToEndOfParagraph:
    

    use below

    selectLine:, delete:
    

    This is more clear and throw away any possibility of malfunction.

    I want to write this as a comment, but my "reputation" doesn't allow me to do that.

提交回复
热议问题