Xcode 有导航到文件/类的快捷方式吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4633899/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Does Xcode have a navigate to file/class shortcut?
提问by Blankman
I want something like in textmate where I can quickly navigate to a file or class
我想要类似 textmate 的东西,我可以在其中快速导航到文件或类
回答by Thomas Zoechling
Command-Shift-O displays the "Quick Open" Window.
Command-Shift-O 显示“快速打开”窗口。
回答by Johnny Oshika
The 'Quick Open' shortcut was changed to Command-Shift-o (that's the letter o and not zero) in XCode 4
XCode 4 中的“快速打开”快捷方式已更改为 Command-Shift-o(即字母 o 而不是零)
回答by Johnny Oshika
I don't use TextMate, but maybe this is what you want: File -> Open Quickly… (or shift-command-D). Another useful shortcut is View -> Switch to Header/Source File (or option-command-up arrow) to switch between header file (.h) and source file (.m).
我不使用 TextMate,但也许这就是您想要的:文件 -> 快速打开...(或 shift-command-D)。另一个有用的快捷方式是查看 -> 切换到头文件/源文件(或选项命令向上箭头)以在头文件 (.h) 和源文件 (.m) 之间切换。
回答by bealex
You can Cmd+Double click on an item to navigate there. Also, you can assign shortcut for either menu Edit->Find->Jump to Definition or Jump to Selection, but the behavior there is not accurate.
您可以 Cmd+双击一个项目来导航到那里。此外,您可以为菜单 Edit->Find->Jump to Definition 或 Jump to Selection 指定快捷方式,但那里的行为不准确。