Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I reset Xcode 4 keyboard shortcuts?

Tags:

xcode4

How can I reset Xcode 4 keyboard shortcuts to the default values? Thanks.

like image 623
lampShade Avatar asked May 10 '11 19:05

lampShade


1 Answers

mv ~/Library/Developer/Xcode/UserData/KeyBindings/Default.idekeybindings ~/

This will make a backup copy just in case. Then start XCode, view the Keybinding preferences, and restart XCode. This will create a blank default Default.idekeybindings file.

Edit: As per the comment response, first Quit XCode. Then if you want to reset a particular binding, you'll have to edit the ~/Library/Developer/Xcode/UserData/KeyBindings/Default.idekeybindings File and remove the <key></key> element that has the keycode that was overridden, and the <string></string> element that comes after it.

like image 116
onteria_ Avatar answered Sep 30 '22 13:09

onteria_