PhpStorm
 
Get PhpStorm

Move Class Dialog

Last modified: 21 July 2022

Refactor | Move

F6

The dialog opens when you position the caret at the name of the class in the editor and invoke the refactoring.

PhpStorm supposes that the namespaces in your project are arranged in compliance with the PSR0 standard and enforces you to retain the folder structure and the namespace hierarchy in accordance with this standard when moving classes among namespaces.

When you specify a namespace to move a class to, PhpStorm automatically updates the Target Destination Directory field, which shows the path to the folder where the file that implements the class in question will be stored.