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)
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.
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.
Ctrl+Cmd+Up or Down, but the shortcut seems a bit finicky and sometimes stops working, not yet sure when and why.
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).)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With