Create From Usage
Go Up to Refactor Menu
Refactor > Create From Usage
Note: This feature comes through Visual Assist.
The Create From Usage feature allows users to type the name of an undefined symbol and introduce it without leaving the current position.
This development style works for many targets, including enums, variables, functions, methods, header files, and more. When it is not enabled, the feature is labeled Create Foo, with 'foo' as the symbol name, as shown below.
To perform this feature, follow the next steps:
- Set the cursor in the symbol.
- Go to the Refactor option of the main menu.
- Select Create From Usage.
- When the Create From Usage window opens, select one of the following options to create:
- Member in Archive
- Local variable
- Global variable
- Parameter to ReadOldHeader
- In the Declare member field, enter the name in the text field.
- Click OK to introduce the variable or Cancel to exit the feature.