Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Customizing Key Equivalents

Xcode lets you change the Command-key equivalents for its menu items and lets you change the keyboard equivalents for common editing tasks, such as paging through a document or moving the cursor. You can choose a pre-defined set of key bindings for menu items and other tasks, or create your own set. The pre-defined sets include sets that mimic BBEdit, Metrowerks CodeWarrior, and MPW.

To work with key bindings, choose Preferences from the Xcode menu, then click Key Bindings. Figure 38-1 shows the Key Bindings preferences pane, with the key equivalents for the Xcode menu visible. Menu item key equivalents do not require the Command key.

You can use the pop-up menu and buttons to choose a predefined set of key bindings, copy one of the supplied sets and delete sets you have created. Use the Duplicate button to copy the set that is currently selected in the Key Binding Sets pop-up menu. You cannot edit any of the Xcode’s preexisting key bindings sets; to customize key bindings, duplicate an existing set and modify the copy. Use the Delete button to delete the currently selected set. You can’t delete a supplied set, only a set you have created or copied.


Figure 38-1  The Key Bindings pane in the Xcode Preferences window

Figure 38-1 The Key Bindings pane in the Xcode Preferences window

Figure 38-2 shows the supplied sets provided in the Key Binding Sets pop-up menu, including sets that mimic the menu and shortcut equivalents of Metrowerks CodeWarrior, and other popular Macintosh IDEs and text editors.


Figure 38-2  Supplied sets of key bindings

Figure 38-2 Supplied sets of key bindings

Contents:

Customizing Command-Key Equivalents for Menu Items
Customizing Keyboard Equivalents for Other Tasks




< Previous PageNext Page > Hide TOC


Last updated: 2006-11-07




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice