Refactor << Back to feature overview
Find usages [Alt+F2]
Extract method [Sh+Alt+E]
Rename [Sh+Alt+R]
Encapsulate field  
Create definition  
Create declaration  
Create instance  
Move definition to source file  
Refactor context menu [Alt+R]
   
 
 
Find usages

This command easily allows you to find all usages of a symbol in the current solution. For each individual usage, the usage mode, line number, scope and line text is displayed.

Extract method [Sh+Alt+E]

You can extract a new method from a selected portion of code. Parameters that need to be passed are automatically detected. You can change the order of parameters and specify if they should be passed by reference or not. The newly extracted method is inserted right above the method from which it is extracted.

Rename [Sh+Alt+R]

This refactor command allows you to easily rename a symbol and all it's usages. When a class is renamed, it's declaration & definition file are also renamed if they correspond to the class name. If the class's declaration file is renamed then all includes of that file are also updated.

Encapsulate field

The Encapsulate Field refactoring operation enables you to create a get and set method from a class data field. The naming scheme for the generated methods can be customized from the CodeEnahnce->Settings->Refactoring options page. The generated methods are inserted after the last public method in the class's body.

Create definition

This refactoring operation enables you to create a definition for a specific method. The definition is inserted in the class's definition file or in the class's header file if the function is a template function.

Create declaration

This refactoring operation enables you to create a declaration for a defined method.

Create instance

This refactoring operation enables you to create an instance for a static data member belonging to a class.

Move definition to source file

This refactoring operation enables you to move the definition for an existing function from within the class's body to the class's definition file.

Refactor context menu [Alt+R]

The refactor context menu provides quick access to refactoring commands based on the context it is displayed under. Only the available commands are displayed when the context menu is activated.