I'm making changes to the default keybindings and getting some conflicts. Just unsure how I can unmap a keybinding that I don't need? I tried to hit delete on when selecting the shortcut in the list but to no avail.
P.S. I've tried double clicking the shortcut but no -
button appears on the right.
How to delete a keybinding on Xcode ? (using version 9.3 of Xcode)
The first method is obviously the little -
that sometimes appears when double-clicking a binding.
The second method is not so quick but (in my experience) just as efficient.
(Here I am assuming you've got a personalised keybinding profile already. If you don't, create one. I'll call it Personal
.)
~/Library/Developer/Xcode/UserData/KeyBindings/
.personal.idekeybindings
(it's a simple XML file, any decent text editor should be able to handle it).command + F
.You should then find something looking like this (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>^<</string>
<key>Navigation</key>
<string>NO</string>
<key>Title</key>
<string>Execute Playground</string>
</dict>
Delete this part:
<key>Keyboard Shortcut</key>
<string>^<</string>
Do that for each shortcut you want to remove and don't forget to save the file before closing it. Now open Xcode and check for the shortcut: the space for the keybinding should be empty.
When you double click a key binding, you should see an icon with a minus all the way at the right end of the text box. Simply clicking that icon removes the binding.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With