Hi all! Today we would like to show you brand new renaming feature for next NetBeans release.
Most of you definitely use common standard that every class is in its own file and the file name is the same as the class name. It means that if you have class Foo
it will surely be in a file named Foo.php
. But when you rename that class you surely want to rename its file as well. And NetBeans, finally, allows you to do that automatically :-) Just check one checkbox during refactoring process and that's all.
So here are some screenshots:
Right click on the class name and invoke Refactor -> Rename....Type new name and check Rename Also File With the Declaration. checkbox.
Confirm refactoring and look at new file name :-)
And that's all for today and as usual, please test it and if you find something strange, don't hesitate to file a new issue (product php, component Refactoring). Thanks a lot!