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

丶灬走出姿态 提交于 2019-12-03 02:55:04

问题


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



来源:https://stackoverflow.com/questions/6133225/how-to-highlight-opened-file-in-xcode-4-on-the-project-navigator-panel

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!