php - How to move a class and the namepsace using PhpStorm? -
i tried moving class in phpstorm 10.0.3 using f6, yet changed file's location , not namesapce. manually adapting namespace feels wrong, if class has been used @ multiple places.
move cursor upon classe's definition, , press f6. open move class dialog , there have option move different namepsace.
class foo { }
the cursor has on foo
.
one has both specify target namespace , target destination directory. refactoring works expected.
if press f6 when cursor inside other place in class file, phpstorm open move dialog.
Comments
Post a Comment