# Renaming a local variable

To rename a local variable (or a method parameter):

- Select the variable (or a reference to it) in the Java editor
- Do one of the following:
  - From the menu bar, select Refactor > Rename or
  - From the editor's pop-up menu, select Refactor > Rename

Java development tools (JDT)

Parameters page
Extracting a local variable
Inlining a local variable
Renaming method parameters
Changing method signature
Replacing a local variable with a query

Refactoring actions
Refactoring dialogs
Java preferences