How can I tell PHPStorm to refactor namespaces and class names?

Webnet

I've noticed when I move a file in PHPStorm, it doesn't adjust the namespace at all. My project uses PSR-0, so directory structure mirrors the namespacing. Is it possible to have PHPStorm adjust the namespace when a file is moved?

Also, when renaming a file the class name is not changed and I then have to go in and rename the class. Is it possible to rename a file and the class in a single step?

I'm using 7.1.3

Webnet

Because my application is a Laravel app the root directory was not the source of the namespacing. PHPStorm has a new option as of 8.0 that allows you to specify a directory as the namespace root: http://youtrack.jetbrains.com/issue/WI-22585

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I tell PHPStorm to refactor namespaces and class names?

From Dev

How can I refactor a simple class member to a more complex type?

From Dev

How can I make PHPStorm auto-import namespaces in use statements?

From Dev

How can I tell using reflection if a class is final

From Dev

How can I tell which constructor to use on an inner (member) class?

From Dev

How can I tell what the class of an instance variable is in Swift

From Dev

How can I refactor this code to be more concise?

From Dev

How can I refactor a set of ugly if statements?

From Dev

How can i refactor these lines of code?

From Dev

How Can I Refactor To Avoid Duplication?

From Dev

How can I refactor this horrid abstract java class with multiple generics into something "better"?

From Dev

How can I install phpstorm?

From Dev

PhpStorm refactor local variable to class field

From Dev

How can IntelliJ refactor class constants to an external class?

From Dev

PHP laravel class not found. How can I use namespaces to fix this?

From Java

How can I target html element class names instead of elements?

From Dev

How can I dynamically append and remove text for multiple class names?

From Dev

How can I dynamically append and remove text for multiple class names?

From Dev

How can I save my toggled class names?

From Dev

How can I get class names back when using MultiLabelBinarizer

From Dev

How can I tell if I installed with wubi?

From Dev

How can I tell if I installed with wubi?

From Dev

How do I tell a compiler to "ignore" a class?

From Dev

How can I tell how old a computer is?

From Dev

How can I find all php class files without strict_types declaration (RegExp / PhpStorm)

From Dev

How can I tell if a Rust library is deprecated?

From Dev

How can I tell Windows to prefetch files?

From Dev

How can I tell Swift to use "no" NSStringDrawingOptions

From Java

How can I tell Moq to return a Task?

Related Related

  1. 1

    How can I tell PHPStorm to refactor namespaces and class names?

  2. 2

    How can I refactor a simple class member to a more complex type?

  3. 3

    How can I make PHPStorm auto-import namespaces in use statements?

  4. 4

    How can I tell using reflection if a class is final

  5. 5

    How can I tell which constructor to use on an inner (member) class?

  6. 6

    How can I tell what the class of an instance variable is in Swift

  7. 7

    How can I refactor this code to be more concise?

  8. 8

    How can I refactor a set of ugly if statements?

  9. 9

    How can i refactor these lines of code?

  10. 10

    How Can I Refactor To Avoid Duplication?

  11. 11

    How can I refactor this horrid abstract java class with multiple generics into something "better"?

  12. 12

    How can I install phpstorm?

  13. 13

    PhpStorm refactor local variable to class field

  14. 14

    How can IntelliJ refactor class constants to an external class?

  15. 15

    PHP laravel class not found. How can I use namespaces to fix this?

  16. 16

    How can I target html element class names instead of elements?

  17. 17

    How can I dynamically append and remove text for multiple class names?

  18. 18

    How can I dynamically append and remove text for multiple class names?

  19. 19

    How can I save my toggled class names?

  20. 20

    How can I get class names back when using MultiLabelBinarizer

  21. 21

    How can I tell if I installed with wubi?

  22. 22

    How can I tell if I installed with wubi?

  23. 23

    How do I tell a compiler to "ignore" a class?

  24. 24

    How can I tell how old a computer is?

  25. 25

    How can I find all php class files without strict_types declaration (RegExp / PhpStorm)

  26. 26

    How can I tell if a Rust library is deprecated?

  27. 27

    How can I tell Windows to prefetch files?

  28. 28

    How can I tell Swift to use "no" NSStringDrawingOptions

  29. 29

    How can I tell Moq to return a Task?

HotTag

Archive