Skip to content

Instantly share code, notes, and snippets.

@pokk
Created October 20, 2016 01:15
Show Gist options
  • Save pokk/e69774ba4f632facacd59588c5dc0a75 to your computer and use it in GitHub Desktop.
Save pokk/e69774ba4f632facacd59588c5dc0a75 to your computer and use it in GitHub Desktop.
Preferences settings in Xcode

Introduction

How to set the convenient preferences in Xcode.

Edit the Key Binding plist file

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

Add this text just ABOVE the close of the at the bottom of this file

<key>Custom</key>
    <dict>
        <key>Delete Current Line In One Hit</key>
        <string>moveToEndOfLine:, deleteToBeginningOfLine:, deleteToEndOfParagraph:</string>
    </dict>
  1. Open XCode Preferences.
  2. Select Key Bindings.
  3. Click on All.
  4. In the SEarch box type "Delete" and search for "Delete Current Line in One Hit".
  5. Add your new binding. I use cmd+e, so I had to map duplicate to something else first.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment