美文网首页iOS猿媛圈
Xcode复制和删除快捷键

Xcode复制和删除快捷键

作者: FlyElephant | 来源:发表于2016-03-24 23:55 被阅读42次

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中设置自己需要的快捷键~

相关文章

网友评论

    本文标题:Xcode复制和删除快捷键

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