Env

10.3 xcode

macos mojave

Method

  • open /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/IDETextKeyBindingSet.plist
  • Add the following lines into the root dictionary (after first dict occurrence)
1
2
3
4
5
6
7
8
9
<key>Sublime Commands</key>
<dict>
<key>Cut Current Line</key>
<string>selectLine:, cut:</string>
<key>Copy Current Line</key>
<string>selectLine:, copy:</string>
<key>Duplicate Current Line</key>
<string>selectLine:, copy:, moveToBeginningOfLine:, paste:, moveToEndOfLine:</string>
</dict>
  • restart xcode
  • cmd + , go to key bindings, go to Text, go to Sublime Commands
    • add your own shortcut