xcode 跳转到方法实现的Xcode快捷方式?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8748340/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 22:54:48  来源:igfitidea点击:

Xcode shortcut for jumping to implementation of a method?

iphoneiosxcodekeyboard-shortcuts

提问by Evil Nodoer

Is there a keyboard shortcut in Xcode for jumping to the implementation of a method? I am aware of the fact the command+click will jump to definition, but I want to jump to the implementation method, not the definition. Also, I want to use keyboard shortcuts, with no involvement of the mouse (including clicks).

Xcode 中是否有用于跳转到方法实现的键盘快捷键?我知道command+click会跳转到定义,但是我想跳转到实现方法,而不是定义。另外,我想使用键盘快捷键,不涉及鼠标(包括点击)。

回答by Johnny Oshika

Keyboard shortcut for 'jump to definition' in XCode 4.5: Control-Command-J

XCode 4.5 中“跳转到定义”的键盘快捷键:Control-Command-J

Another useful shortcut after jumping to definition is Control-Command-Left (which takes you back).

跳转到定义后的另一个有用的快捷方式是 Control-Command-Left(它会带你回来)。

回答by Guy Ephraim

Command + click will work, If you want "keyboard only" shortcut you need to map it under Preferences->key bindings->Edit->Find->jump to definition

命令+单击将起作用,如果您想要“仅键盘”快捷方式,则需要将其映射到首选项-> 键绑定-> 编辑-> 查找-> 跳转到定义

回答by Ignacio Inglese

Hold Command and click on the method you want to see it's implementation.

按住 Command 键并单击要查看其实现的方法。