美文网首页iOS项目与环境的那些事iOS学习ios菜鸟收集区
iOS-10-Xcode增加复制行、删除行快捷键的方法

iOS-10-Xcode增加复制行、删除行快捷键的方法

作者: 小东门儿 | 来源:发表于2017-02-23 11:00 被阅读71次

    运行:

    sudo chmod 666 /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist
    

    然后打开/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist,在Deletions下面增加:Delete Current Line,值为:

    deleteToBeginningOfLine:, moveToEndOfLine:, deleteToBeginningOfLine:, deleteBackward:, moveDown:, moveToBeginningOfLine:
    

    在Insertions and Indentations下面增加:Duplicate Current Line,值为:

    selectLine:, copy:, moveToEndOfLine:, insertNewline:, paste:, deleteBackward:
    

    然后重启Xcode,打开设置,Key Bindings,找到“Delete Current Line”和”Duplicate Current Line”这两项,设置为自己想要的快捷键。

    引用:http://blog.csdn.net/meegomeego/article/details/12971089

    相关文章

      网友评论

        本文标题:iOS-10-Xcode增加复制行、删除行快捷键的方法

        本文链接:https://www.haomeiwen.com/subject/apovwttx.html