给Xcode增加复制行、删除行快捷键的方法-自定义复制行模式

转载:http://blog.csdn.net/meegomeego/article/details/12971089

《 但是,本人修改了复制行的模式,使其更符合我的需求。》



http://stackoverflow.com/questions/551383/xcode-duplicate-delete-line

http://stackoverflow.com/questions/10266170/xcode-4-duplicate-line

适用于最新的Xcode 4.5.1

运行:

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:, deleteToBeginningOfLine:, deleteBackward:

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


你可能感兴趣的:(IOS开发记录,开发)