简体   繁体   English

如何在Xcode 4中的.h和.m之间切换

[英]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! 到目前为止,刚刚安装了Xcode 4效果很好,只是Apple更改了所有键盘快捷键! Anyone know how to toggle between .h and .m? 有人知道如何在.h和.m之间切换吗?

Apple changed all sorts of shortcuts, but to switch between header and implementation, the new shortcut is, Apple更改了各种快捷方式,但要在标头和实现之间切换,新的快捷方式是:

+ + / + + /

You can change it back to the previous + + / in Preferences > Key Bindings . 您可以在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. 如果在大屏幕上工作,则可以使用“助手”布局的拆分视图,并排放置.h和.m文件。

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

The commands we're looking for are in the Navigate menu bar item. 我们要查找的命令在“ Navigate菜单栏中。

Jump to Next Counterpart

and

Jump to Previous Counterpart

Once you have the menu item names, these can be assigned to any keyboard shortcut. 获得菜单项名称后,可以将其分配给任何键盘快捷键。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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