Automated refactorings for Godot
A couple of friends (@JuanFdS and @calvogenerico) and me started to implement automated refactorings for the Godot IDE.
The work is in progress, and it isn’t production-ready yet. Nonetheless, the code is available on GitHub. The backend (i.e., the parser and the code transformations) is written in Rust using pest, and the frontend (i.e., the user interface) is in GDScript.
Some refactorings examples
Extracting a variable:
Inlining a variable:
Toggling the @export
annotation:
Toggling exposing a function with the @export_tool_button
annotation + variable: