Keyboard shortcut for Jump to Definition
Posted
by Arne Evertsson
on Stack Overflow
See other posts from Stack Overflow
or by Arne Evertsson
Published on 2010-02-09T10:05:19Z
Indexed on
2010/05/03
1:08 UTC
Read the original article
Hit count: 270
I'm looking for a keyboard only shortcut for Jump to Definition. The built-in shortcut requires the mouse: Cmd + Double click.
I've tried to add a regular keyboard shorcut for the Edit / Find / Jump to Defintion menu command, but, alas, it will only work when the method name is selected. I'd like to be able to position the cursor within the method name, class name, or other symbol, and hit something like Cmd+Shift+L.
Does anyone know of a solution, perhaps using a script, for the problem?
Update: The keyboard shortcut works sometimes and sometimes not. When I position the text cursor on a method call with no parameters and press Cmd+Shift+L it takes me to the definition. But it doesn't work for a method that takes an (id) parameter. However it works if the parameter is an int.
I have submitted a bug report to Apple.
© Stack Overflow or respective owner