swiftxcodeappcode

Does Xcode have a way to jump to the "type declaration" for a variable?


Assume I have the following swift code...

let myFooInstance = Utils.createFooInstance() // variable type is `Foo`

... and I want to quickly jump to the type declaration for myFooInstance (ie navigate to the source code for Foo).

In AppCode I can simply [shift]+[cmd] click on the variable name to do so. Is there an analogous shortcut or otherwise efficient way to accomplish the same thing in Xcode?

The best I've been able to come up with:


Solution

  • Xcode has no equivalent of AppCode's Navigate > Type Declaration feature. I also sorely miss this feature.