PyCharm
 
Get PyCharm

Rename refactorings

Last modified: 24 January 2025

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

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