PHP refactoring
Posted: Thu Jun 01, 2017 2:55 am
While cleaning up some large php code bases i often need split large functions. As such I think this will be the next plugin/functionality I might work on. This was actually what initially got me to try CodeLite as i saw it listed as having refactor capabilities and php support, and is open source
External tools for doing this already exists https://github.com/QafooLabs/php-refactoring-browser so one option would be to make a plugin similar to the code formatter that taktes the current selection range, asks for a new name for the function and then passes this on to that tool. For me personally I think this would work reasonably but I don't feel this is a feature that can really justify external dependencies and the need for configurations.
The other option is to implement something that takes advantage of the php lexer in CL, but I'm honestly not sure where to start with something like that.
Any help or advice (even opinions ) are very welcome at this point
External tools for doing this already exists https://github.com/QafooLabs/php-refactoring-browser so one option would be to make a plugin similar to the code formatter that taktes the current selection range, asks for a new name for the function and then passes this on to that tool. For me personally I think this would work reasonably but I don't feel this is a feature that can really justify external dependencies and the need for configurations.
The other option is to implement something that takes advantage of the php lexer in CL, but I'm honestly not sure where to start with something like that.
Any help or advice (even opinions ) are very welcome at this point