73

Is there a way to easily get the current file in the Editor pane selected in the Project Navigator without the need to expand all folders (if the file is buried deep down somewhere)?

I know you can see the location in your project using the "bread crumb" on top op the Editor pane, but I like a functionality similar to the one in Visual Studio...

Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
Niels R.
  • 7,260
  • 5
  • 32
  • 44

1 Answers1

156

Right click and choose Reveal in Project Navigator or press + + J

See Xcode 4 Keyboard Shortcuts for more, or better yet, use KeyCue.

Jano
  • 62,815
  • 21
  • 164
  • 192
  • 3
    Don't know when this was added, but the `Reveal in Project Navigator` command is now available in the `Navigate` menu as well (if, for example, a Property List is open and the option isn't available in the menu for right click). Keyboard shortcut is identical – newenglander Jan 06 '16 at 13:07
  • 3
    Is there as well a setting to just always show the current file in the project navigator? I don't understand why this isn't the default... – Wizard of Kneup Aug 05 '19 at 18:52