How to highlight opened file in XCode 4 on the "Project Navigator" panel?

Since a project can have hundreds of files inside dozens of directories (filters) shown on the "Project Navigator" panel, sometimes it's getting difficult to seek the file which is currently opened in the Editor (for example, when I jump from file to file via "CMD + clicking", etc).

Is there a way to automatically select currently opened file on the "Project Navigator" panel? I.e., automatically expand the directories (filters) and select the file there as I would have clicked on it? Maybe there's a shortcut or something?

Thanks.

15380 次浏览

Right-click the file in the editor and choose Reveal in Project Navigator.

The keyboard shortcut is -shift-J