PyCharm
 
Get PyCharm
You are viewing the documentation for an earlier version of PyCharm.

Rename refactorings

Last modified: 31 January 2023

Shortcut for the action: Shift+F6

General refactoring settings: Settings | Editor | General

In-place refactoring is available

Use the Rename refactoring to change names of symbols, files, and all the references to them throughout code.

Renaming local variables or private methods can be done easily inline since only the limited scope is affected. Renaming classes or public methods could potentially impact a lot of files. Preview potential changes before you refactor.