码迷,mamicode.com
首页 > 其他好文 > 详细

给Xcode增加复制行、删除行快捷键的方法

时间:2016-01-14 18:57:31      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:

运行:

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”这两项,设置为自己想要的快捷键。

给Xcode增加复制行、删除行快捷键的方法

标签:

原文地址:http://www.cnblogs.com/code4app/p/5131303.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!