設置整行代碼上下移動:
找到Xcode中的自帶的配置文件:
/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/
Resources/IDETextKeyBindingSet.plist
用文本編輯IDETextKeyBindingSet.plist,并添加以下代碼:
按 Ctrl+C 復制代碼
按 Ctrl+C 復制代碼
這個dict是一組可以設置快捷鍵的操作刀崖,里面的key是名稱鞭铆,對應的string是對應的一組操作
GDI Duplicate Current Line?? ?復制當前行到下面一行
GDI Delete Current Line 刪除當前行
GDI Move Current Line Up 把當前行往上移動一行
GDI Move Current Line Down 把當前行往下移動一行
GDI Insert Line Above 在當前行上面增加一空行
GDI Insert Line Below 在當前行下面增加一空行(不管光標是否在行尾)
3. 重啟Xcode恋拍,在Xcode菜單中痕届,打開Preferences埠通,選中Key Binding儡毕,在右上方搜索GDI:?