Renames a local variable, function, method, field, property, parameter, type, namespace, active CSS style, XAML namespace prefix, C++ global variable, or C++ macro and updates all references to the modified element.
Providing a meaningful name for a variable, property or method can greatly improve code readability.
when the edit cursor or caret is on a local variable, private field, private property or private method declaration or reference.
If you need to rename a public method, take a look at the Safe Rename refactoring.
When the Rename is activated, it turns all references to the selected variable into the linked identifiers.
Rename is automatically activated by a number of other refactorings that introduce new variables, constants, methods and properties. This enables you to give a meaningful name to a newly declared member.