Note: This software is under development and in alpha state.
It also uses a foreign software to accomplish the refactoring.
- PHP-Refactoring-Browser by QafooLabs
-
Check this repository out and move it to your sublime packages directory.
-
Open configuration and modify the correct file path for php binary and the refactoring browser. (Default.sublime-settings)
a. Open your php file. b. Select lines you want to refactor c. Open command menu with "Super+Shift+P" and select "Refactr: Extract method" d. Type the new method name into the input box
Refactoring with sublime should also be easy.
Extract a range of lines into a new method and call this method from the original location.
List of Refactorings supported:
- Extract Method
List of Refactorings coming soon:
- Rename Local Variable (Prototype Done)