Customizing Keyboard Shortcuts

Customize the keyboard shortcut for a command by editing its key sequence in the Key Bindings preferences pane.

To customize keyboard shortcuts
  1. In the Key Bindings preferences pane, choose a command set to edit.

  2. Locate the command for which you want to change the shortcut.

  3. Double-click a key sequence to select it.

  4. Type a new key sequence to replace the selected one.

  5. Click elsewhere in the detail area to apply your change.

    The screenshot shows editing the key sequence for the Move Right Extending Selection command.


To edit the key binding for a command, double-click its key field, and then:

  • To change a selected sequence, type a new one to replace it.

  • To remove a selected sequence, click the Remove (—) button. (Do not press the keyboard Delete key; that just adds Delete to the key sequence.)

  • To enter a sequence in an empty key field, type the sequence.

  • To add a sequence to an existing one, click the Add (+) button and type the new sequence. This only works for text commands; you cannot assign more than one sequence to a menu command.

Specify a key sequence by typing it just as you would type it to use it; for example, to specify ^A, hold down the Control key and type the letter a.

A specific key sequence can be bound to only one command; if you enter one that is already assigned to another command, Xcode removes it from that other command.

For detailed information about key bindings, see “Text System Defaults and Key Bindings” in Cocoa Event-Handling Guide.