13.1.6 Refactor Menu

This section lists the menu items in the Refactor menu. The items you see are dependent on the type of object (variable, function, etc.) you are refactoring. For more information, see C Code Refactoring.

For keyboard shortcuts of some of these menu items, see Help > Keyboard Shortcuts Card.

Table 13-6. Refactor Menu Options
CommandAction
RenameEnables you to change the name of a variable or function to something more meaningful. 
In addition, it updates all source code in your project to reference the element by its new name.
MoveMoves a class to another package or into another class
In addition, all source code in your project is updated to reference the class in its new location.
CopyCopies a class to the same or a different package.
Safely DeleteChecks for references to a code element and then automatically deletes that element if no other code references it.
Change Function ParameterChanges the amount and name of parameters for the selected function.
Introduce Variable / Constant / Field / MethodSelect the code you want to be replaced by the variable, constant, field or method. Then select Introduce Your Choice and give it a name in the dialog that opens.