How to highlight opened file in XCode 4 on the “Pr

2019-03-08 18:02发布

问题:

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.

回答1:

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



回答2:

The keyboard shortcut is -shift-J



标签: xcode4