XCode 3.0 Keyboard Shortcuts
Here’s a few simple ones:
- Ctrl+Tab rotates focus between the file list, search bar and text edit area.
- Cmd+Opt+UpArrow toggles between the .h and .m files of the class you are working on.
- Cmd+DoubleClick on a highlighted object or method takes you to the documentation for that object or method.
- Opt+DoubleClick on a highlighted object or method takes you to the header file for that object where the method is defined.
- Cmd+Click the .h files in your project and then go to menu: Design -> Class Model -> Quick Model. This generates a really nice class diagram of the classes in your project.
For a really complete list, check out Cocoa Samurai
Stupid __MyCompanyName__ in XCode 3.0
To change the __MyCompanyName__ substitution in XCode 3.0, go to a terminal and type:
defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions "{ \"ORGANIZATIONNAME\" = \"mycompanyname\"; }"
Restart XCode.
Create a new file to make sure it worked.
How handy.