Xcode复制和删除快捷键需要自己配置,换个环境就需要重新配置一下,很简单就三步:
1.权限修改
sudo chmod 666 /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist
2.打开文件
open /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist
3.复制行和删除行
Insertions and Indentations 添加键值对
Duplicate Current Line selectLine:, copy:, moveToEndOfLine:, insertNewline:, paste:, deleteBackward:
Deletions 添加键值对
Delete Current Line moveToEndOfLine:, deleteToBeginningOfLine:, deleteBackward:, moveDown:, moveToEndOfLine:
重启Xcode,最后在Key Bindings中设置自己需要的快捷键~
网友评论