Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

xcode4

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.

like image 710
Funbit Avatar asked May 26 '11 02:05

Funbit


People also ask

How do I search for a file in Xcode?

To find text in a file, open the file in the Xcode source editor and choose Find > Find from the menu bar. Xcode displays the Find bar and its search controls at the top of the file. Enter a search term. Xcode searches the file, highlights matches, and notes how many it finds.

Where is Xcode project navigator?

The Project navigator displays your project's files and lets you open, add, delete, and rearrange those files. To open the Project navigator, at the top of your project window's navigator area, click the icon that resembles a file folder.

How do I show the file extension in Xcode?

These files extensions can be hidden and shown. Xcode->preferences and then select General tab you will see File Extension option. With this option, you can hide and show files extensions.

How do I open hidden files in Xcode?

Press and hold the ⌘ + shift and . keys at the same time. Then you can switch to view hidden/non-hidden files. Save this answer.


2 Answers

The keyboard shortcut is -shift-J

like image 74
Josh Hight Avatar answered Oct 03 '22 23:10

Josh Hight


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

like image 33
Joshua Nozzi Avatar answered Oct 03 '22 22:10

Joshua Nozzi