Xcode 添加复制行快捷键

2020-06-18  本文已影响0人  iVikings

修改权限

修改 Xcode 快捷键配置文件 IDETextKeyBindingSet.plist 权限

sudo chmod 666 /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist
sudo chmod 777 /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/

增加快捷方式

open /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist

key:

Duplicate Current Line

value:

selectLine:, copy:, moveToEndOfLine:, moveToBeginningOfLine:, paste:, moveBackward:
IDETextKeyBindingSet.plist

设置快捷键

Key Bindings

复制行:Command + D
删除行:Command + Delete

上一篇下一篇

猜你喜欢

热点阅读