Creating Code Constructs Using Generate Menu
The Generate menu helps you quickly create standard code constructs in your code. Depending on the current context, the caret position, or selected code, AppCode gives you a list of constructs to be generated.
|Generate method/function||Not supported|
In unit tests, you can create setUp/tearDown methods or test methods for OCUnit, XCTest, or Google Test. It, context, beforeEach, afterEach and specify blocks can be created for Kiwi.
| || |
To create code constructs using the Generate menu
- Open the file where you are going to generate code and place the caret at the corresponding position, e.g. in the implementation of a class.
- Do one of the following:
- In the Generate menu that is displayed in the editor, select the desired construct.
Depending on the selected item, AppCode either inserts the construct immediately or shows a dialog for additional input.
In Overrides/Implement dialog, choose method/member to be implemented (or overrode) and click OK to proceed.
Refer to Implement/Override dialog reference for more details.