Editor Quick Action: Rename Refactoring

You can use the Rename quick action to rename a variable, a section or paragraph name, or an identifier in a file or in the entire solution:

  1. In the editor, select the name of the identifier you want to rename and start typing the new name.

    The light bulb icon (light bulb) appears in the margin on the line that has the identifier which you have edited.

  2. Select a quick action from the list to rename all instances of the name in the current program or across the entire solution.