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