Feature request: "Rename subroutine"
|Reported by:||rhebus||Owned by:|
|Component:||Refactoring Perl 5||Version:||0.45|
Subroutine renaming is an important refactoring technique. Often you find that the name you originally used for a subroutine wasn't ideal, but by the time you have thought of a better, clearer name it is already referenced 20 times in 10 files.
A "rename subroutine" function would rename the subroutine *and* all references to it throughout the project. Clearly this requires syntactic parsing of all files in the project; a global search-and-replace is flaky and dangerous since it will change subroutines with the same name in different packages.
More info on subroutine renaming:
https://eclipse-tutorial.dev.java.net/visual-tutorials/refactoringrenamefieldandmethod.html -- example of rename field and method in eclipse for Java