? ? ?運行:
sudo chmod ? /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist
? ? 然后打開
/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist
1. 在Deletions下面增加:Delete Current Line纱烘,值為:
deleteToBeginningOfLine:, moveToEndOfLine:, deleteToBeginningOfLine:, deleteBackward:, moveDown:, moveToBeginningOfLine:
2. 在Insertions and Indentations下面增加:Duplicate Current Line掌测,值為:
selectLine:, copy:, moveToEndOfLine:, insertNewline:, paste:, deleteBackward:
? ? ?然后重啟Xcode欣簇,打開設(shè)置常空,Key Bindings瘫镇,找到“Delete Current Line”和”Duplicate Current Line”這兩項鼎兽,設(shè)置為自己想要的快捷鍵答姥。