Xcode復(fù)制和刪除快捷鍵需要自己配置,換個(gè)環(huán)境就需要重新配置一下盹牧,很簡單就三步:
1.權(quán)限修改
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.復(fù)制行和刪除行
Insertions and Indentations 添加鍵值對
Duplicate Current Line selectLine:, copy:, moveToEndOfLine:, insertNewline:, paste:, deleteBackward:
Deletions 添加鍵值對
Delete Current Line moveToEndOfLine:, deleteToBeginningOfLine:, deleteBackward:, moveDown:, moveToEndOfLine:
重啟Xcode,最后在Key Bindings中設(shè)置自己需要的快捷鍵~