Create From Usage

From RAD Studio
Jump to: navigation, search

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.

Create from usage.png

To perform this feature, follow the next steps:

  1. Set the cursor in the symbol.
  2. Go to the Refactor option of the main menu.
  3. Select Create From Usage.
  4. 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
  5. In the Declare member field, enter the name in the text field.
  6. Click OK to introduce the variable or Cancel to exit the feature.

See Also