Remove xcode keybinding

I am making changes to key keyboard shortcuts and getting some conflicts. Just not sure how I can unbind the keys that I don't need? I tried to delete delete when selecting a shortcut in the list, but to no avail.

PS I tried to double-click the shortcut, but no button appears on the right side -

.

+3


source to share


2 answers


When you double-click the key bindings, you should see the minus sign completely at the right end of the text box. Just clicking this icon will remove the anchor.



0


source


How to remove key binding in Xcode? (using version 9.3 of Xcode)

The first method is obviously small , which sometimes appears when you double-click the anchor. -

The second method is not as fast, but (in my experience) is just as effective. (Here I am assuming you already have a personalized keybinding profile. If you don't, create one. I'll name it Personal

.)

  • In Xcode: select the shortcut you want to remove and give it a random binding (even the one that causes conflicts, you remove it after two minutes, you don't care).
  • Close Xcode.
  • Go to ~/Library/Developer/Xcode/UserData/KeyBindings/

    .
  • Open the file personal.idekeybindings

    (this is a simple XML file, any decent text editor should handle it).
  • Find the shortcut you changed and want to remove by searching for its name with command + F

    .

Then you should find something similar (each dict

corresponds to a modified shortcut):



<dict>
    <key>Action</key>
    <string>execute:</string>
    <key>Alternate</key>
    <string>NO</string>
    <key>CommandID</key>
    <string>Xcode.IDEPlaygroundEditor.CmdDefinition.Execute</string>
    <key>Group</key>
    <string>Editor Menu for Playground</string>
    <key>GroupID</key>
    <string>Xcode.IDEPegasusPlaygroundEditor.MenuDefinition.Editor</string>
    <key>GroupedAlternate</key>
    <string>NO</string>
    <key>Keyboard Shortcut</key>
    <string>^&lt;</string>
    <key>Navigation</key>
    <string>NO</string>
    <key>Title</key>
    <string>Execute Playground</string>
</dict>

      

Remove this part:

    <key>Keyboard Shortcut</key>
    <string>^&lt;</string>

      

Do this for each shortcut you want to remove, and remember to save the file before closing it. Now open Xcode and check for the shortcut: the key binding space should be empty.

0


source







All Articles