CodeIt.Once provides the following refactoring commands in the CodeIt.Once menu:
Rename is a refactoring operation that provides an easy way to rename identifiers fields, local variables, methods, namespaces, properties, and types.
Preview reference changes is available in the Rename dialog.
Rename refactoring is available in the Code Editor when you positioning the cursor on the identifier. To invoke the Rename command the Rename menu item from context menu or the CodeIt.Once menu.

![]() |
Extract Method is one of the most common refactorings. Extract method allows to convert a fragment of inline code that can be grouped together into a new method. This operation provides an easy way to avoid long methods.
There are number of reasons to keep your methods short:
In the Code Editor, select the code fragment you want to extract. Select Extract Method in the CodeIt.Once menu. Specify a name for the new method in the New Method Name text box.
Encapsulate Field refactoring operation allows to create a property from an existing field. CodeIt.Once seamlessly updates your code with references to the new property.
The Encapsulate Field operation is only possible when the cursor is positioned on the same line as the field declaration.
For declarations that declare multiple fields, Encapsulate Field uses the comma as a boundary between fields, and initiates refactoring on the field that is nearest the cursor, on the same line as the cursor. You can also specify which field you want to encapsulate by selecting the name of that field in the declaration.

Extract Interface refactoring operation enables you to quickly create a new interface with members derived from an existing class. The source class is modified to implement the new interface.
Extract Interface generates an interface in a new file. You can specify which members to extract into the new interface, the name of the new interface, and the name of generated file.
This feature is only accessible when the cursor is positioned in the class that contains the members that you would like to extract. When the cursor is in this position, invoke the Extract Interface refactoring operation.

Promote Local Variable to Parameter allows for an easy way to move a variable from a local usage to a method, constructor or delegate parameter while updating the call sites correctly.
To perform the Promote Local Variable to Parameter operation, first position the cursor on the variable you wish to promote and then invoke the Promote Local Variable to Parameter operation.
Value for 'Local Variable Default Value' should be provided exactly as you were in the local declaration line, i.e. "Default String" for a String variable, 0 for Integer, or New ArrayList for ArrayList

Remove Parameters refactoring operation allows to easily remove a method parameters. All call sites are seemlessly updated.
...........
Reorder Parameters refactoring operation provides a quick and easy way to change a method parameters order. All call sites are seemlessly updated.
...........
Add Parameter refactoring operation allows to add parameter to a method. All call sites are seemlessly updated.
...........
Method to Property refactoring operation ...
...........
Property to Method refactoring operation ...
...........
Inline Variable refactoring operation ...
...........
Move Class refactoring operation ...
...........
Decompose Conditional refactoring operation ...
...........
© 1998-2005 vbCity.com, LLC. All rights reserved.
Designated trademarks and brands are the property of their respective owners.