Answer the question
In order to leave comments, you need to log in
How to set up auto-rename of namespaces in PhpStorm when moving files?
Hi, anyone!
There is the following conditional project structure.
The root folder is "project", it has 2 folders with classes 'classes1' and 'classes2', and the class 'myClass.php' in the folder 'classes1' .
// myClass.php
namespace project\classes1;
class MyClass{
}
namespace project\classes2;
Answer the question
In order to leave comments, you need to log in
As far as I remember PhpStorm has such a thing as PSR Namespace Roots .
Perhaps the correct configuration will automatically do everything.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question