Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I switch between the header and implementation file in Xcode 4?

Tags:

xcode

How do I switch between the header and implementation file in Xcode 4?

In XCode 3 it was cmd and right or left (I think)

like image 443
TheLearner Avatar asked Mar 14 '11 15:03

TheLearner


People also ask

How do I open a header file in Xcode?

Holding the Command key, click the import/include statement to view the header. Also, you can Command-click on a symbol to jump to the header file that defines it. Alternatively, you can select the pull down menu at the far left of the jump bar, and go down to the "includes" submenu and select the header file to view.

How do I create a header in Xcode?

To create a new file, choose File/New/File … which will open a template chooser in which you can select a header file, a C file, or a C++ file. If you select a C or C++ file, it will give you the option of also creating a header file with the same name.


1 Answers

Ctrl+Cmd+Up or Down, but the shortcut seems a bit finicky and sometimes stops working, not yet sure when and why.


Be sure to FIRST click ON the actual code window...

that's the critical tip to ensure it works. Click anywhere at all on the actual code. (If you're active in one of the other many panes of Xcode, the keystroke combo has no, or different, meaning(s).)

like image 50
zoul Avatar answered Sep 29 '22 13:09

zoul