To rename a symbol
  1. Position the caret at the declaration or at a usage of a symbol in the text editor.
  2. Do one of the following:
    • On the main menu, choose ReSharper | Refactor | Rename.
    • Press Shift+F6 (or F2).
    • Press Ctrl+Shift+R, then click Rename.
  3. The Rename wizard opens. Type a new name for the symbol in the Name box or use one of default names.
    ReSharper provides name completion in the Name box, taking into account your naming style.
       To invoke name completion, place the caret at the first character of the existing name, or in the blank text box, press Ctrl+Space.
  4. ReSharper can provide the list of related symbols in comments and string literals and rename them on demand. If you need it, select the Search in comments and string literals check box.
       Controls available in the Rename wizard vary depending on a symbol refactoring is applied to. Local variables are renamed in dialogless mode.
  5. Click Next. In simple cases, ReSharper immediately applies the refactoring. However, before it is completed, ReSharper could display the following additional wizard screens:
    • If there are related symbols that have names containing the string being changed (for example, read and write properties of a field or instances of a class, related file names, or even classes that implement an interface being renamed), the second page provides the list of these:
      Select related symbols that you want ReSharper to rename along with the selected symbol, and click Next.
    • If you have previously selected Search in comments and string literals, ReSharper displays located usages (if any) in the following screen:
      Select textual occurrences that you want ReSharper to rename.
  6. Click Next. If no conflicts are found, ReSharper will complete the refactoring. Otherwise, resolve conflicts.