Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Xcode have code navigation feature?

Tags:

xcode

Does Xcode have a code navigation feature? Like unix's cscope type of tool which I can enter the name of a class and it will open the file for me? Or find out the caller of a particular method of a class? Or show the type hierarchy of a class?

like image 352
lucius Avatar asked May 14 '09 20:05

lucius


2 Answers

command-shift-D (Xcode 4: command-shift-O) opens a Quick Open window where you can type a partial class name and hit enter to open the file. As far as more complex versions such as what Eclipse offers (method names, symbol names, etc), I don't believe anything like that is built into XCode.

like image 59
Marc W Avatar answered Sep 21 '22 06:09

Marc W


In addition to the Quick Open window, there is the class browser. The class browser allows you to view the class hierarchy. The Class Browser can be found under the Project menu.

like image 36
Lyndsey Ferguson Avatar answered Sep 22 '22 06:09

Lyndsey Ferguson