21

Is there a shortcut in Xcode 4 for showing the file structure, like this? I know you can click on the little breadcrumb to get to it but I'm surprised there is no obvious keyboard shortcut that I can find.

On that same note, is there a shortcut to jump to a method signature in the same file? There is a global one open quickly but often it is useful to limit the scope to current file.

enter image description here

1 Answer 1

34

Set the shortcut for this on Xcode keybindings prefs, look for "Standard Editor -> Show Document items", the default shortcut is "Control + 6" but it is in conflict with some other shortcut in the the OS X preferences, you have to change the shortcut to some else and you are ready to go, Cheers.

3
  • 6
    Oh wow, and you can type to search too while the Document Items menu is showing! Can't thank you enough! This will be a huge time saver!
    – Tony
    Commented Jan 5, 2012 at 17:32
  • Thanks for pointing that out Tony. I would have missed it. :)
    – scrrr
    Commented Nov 28, 2012 at 12:00
  • 2
    I knew about ctrl-6 already but came here looking for how to do the same thing with the list of files to the left of the document items. Guess what? ctrl-5!
    – mharper
    Commented Aug 9, 2018 at 19:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.