简体   繁体   中英

How to toggle between .h and .m in Xcode 4

Just installed Xcode 4 so far so good, except that Apple changed all the keyboard shortcuts! Anyone know how to toggle between .h and .m?

Apple changed all sorts of shortcuts, but to switch between header and implementation, the new shortcut is,

+ + /

You can change it back to the previous + + / in Preferences > Key Bindings .

Look for the Jump to Next Counterpart and Jump to Previous Counterpart commands.

If you are working on a big screen, you could use the Assistant layout's split view, and have the .h and .m files side by side.

Hither be the Grand Unified Gigantic Sheet of Xcode 4 Keybindings.

Download it.
Preview it.
Print it.
Read it.
Know it.
Use it.
Be it.

您也可以在触控板上使用三指向上或向下滑动手势。

The commands we're looking for are in the Navigate menu bar item.

Jump to Next Counterpart

and

Jump to Previous Counterpart

Once you have the menu item names, these can be assigned to any keyboard shortcut.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM