PhpStorm 2016.3 Help

Copy/Clone

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 F5.
    • 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 N/A.
  3. In the Clone dialog box that opens specify the new name, then click OK.

See Also

Last modified: 23 March 2017