这篇内容来自于网上收集
基本流程 :
1.修改配置文件权限,编辑配置文件
2.加入删除行,复制行的指令
3.进入Xcode为配置添加对应的快捷键
第一步,再终端中执行:
sudo chmod 666 /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist
sudo chmod 777 /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/
然后编辑配置文件:
open /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist
第二步,在Plist中添加删除行,复制行的指令
删除一行
然后找到root下的Deletions,在Deletions下添加一个key:
Delete Current Line
值为:
deleteToBeginningOfLine:,
moveToEndOfLine:,
deleteToBeginningOfLine:,
deleteBackward:,
moveDown:,
moveToBeginningOfLine:
复制一行:
在Insertions and Indentations下添加两个key:
Duplicate Current Line
值为:
selectLine:,
copy:,
moveToEndOfLine:,
insertNewline:,
paste:,
deleteBackward:Insert Line Under
值为:
moveToEndOfLine:,
insertNewline:
第三步:进入Xcode进行设置