PhpStorm 8.0.0 Web Help

The Copy refactoring allows you to copy a class, file, or directory with its entire structure from one directory to another, or clone it within the same directory.

To copy a class, file, or directory
  1. Select the desired item in one of the views or open it in the editor.
  2. Do one of the following:
    • On the main menu or on the context menu of the selection, choose Refactor | Copy.
    • Press F5F5F5F5F5F5F5F5F5F5F5.
    • Select the desired class in the Project tool window and drag it to the target destination with the Ctrl key pressed.
  3. In the Copy dialog box that opens specify the new name and destination, then click OK.
To clone a class or file
  1. Select the desired item in one of the views or open it in the editor.
  2. Press CloneElementCloneElementCloneElementCloneElementCloneElementCloneElementCloneElementCloneElementCloneElementCloneElementCloneElement.
  3. In the Clone dialog box that opens specify the new name, then click OK.

See Also

Reference:

Getting Started:

Web Resources: