PyCharm 4.0.4 Help



The Copy refactoring lets you create a copy of a class, file or directory in a different directory.

Performing copy refactoring

To perform the Copy refactoring

  1. Select the item of interest in a tool window (e.g. the Project tool window). Alternatively, open the necessary class or file in the editor.
  2. Do one of the following:
    • Choose Refactor | Copy in the main menu or the context menu.
    • PressF5.
    • In the Project tool window, press and hold the Ctrl key, and drag the item to the target location.
  3. In the Copy dialog that opens, specify the name and location for the copy that you are creating, and click OK.

See Also

Last modified: 3 February 2015
comments powered by Disqus