Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

xcode-key-bindings

Since Xcode has to be one of the worst IDE's out there, it comes as no surprise even setting custom key bindings requires some extra work.

Here's how I've done it

  1. Open up /Applications/Xcode-Beta.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist in a text editor
  2. Paste this to the end of the file (or any other custom commands you want)
<key>Custom</key>
<dict>
    <key>Cut Current Line</key>
    <string>selectLine:, copy:, deleteBackward:</string>
    <key>Insert and Move to New Line Below</key>
    <string>moveToEndOfLine:, insertNewline:</string>
    <key>Duplicate Current Line</key>
    <string>moveToBeginningOfLine:, deleteToEndOfLine:, yank:, insertNewline:, moveToBeginningOfLine:, yank:</string>
</dict>
  1. Restart Xcode
  2. Inside Xcode go to Preferences -> Key Bindings and search for Cut Current Line (or any other key you added previously)
  3. Add the desired shortcut (Ctrl X in my case)

About

Short tutorial on how to add custom key bindings to Xcode IDE

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors