Friday, July 10, 2009

XCode: Go to Counterpart

Above the edit view (Southeast Panel in XCode) there is a neat little icon
that looks kind of like a standard copy to clipboard button (2 overlapping pages). If you hover over this button it says "Go to Counterpart".
If you are viewing an Objective-C header (.h) file or an Objective-C implementation (.m) file then this file will be enabled. Clicking the file swaps the contents of the current edit window with the corresponding file. In other words, if you are looking at the header file and you click the button then the contents of the edit view will show the corresponding implementation file.






NOTE: You can modestly change the behavior of this within the XCode Preferences under the General icon:



If you forget about this icon you can always use the keyboard shortcut: opt-cmd-UPARROW

No comments:

Post a Comment