Move refactorings allow to move classes, functions, files and directories within a project. So doing, PyCharm automatically corrects all references to the moved symbols in the source code.

The following Move refactorings are available:

  1. Select the symbol to be moved and do one of the following:

    The dialog that opens depends on the type of the selected symbol.

  2. Specify the move options according to the type of the item to be moved. See option descriptions in the Move dialog box reference.
  3. Preview and apply the changes.

See Also

Reference:

Getting Started:

Web Resources: