gdfmt is a simple command-line tool for formatting GDScript code. It leverages
Tree-sitter to parse GDScript files into an Abstract Syntax Tree (AST), allowing
for intelligent and consistent code formatting.
To install gdfmt, you'll need Rust and Cargo installed on your system. If you
don't have them, you can get them from rustup.rs.
cargo install --git https://github.com/emersonmx/gdfmtTo format a GDScript file, simply run gdfmt followed by the path to the file:
gdfmt path/to/your_file.gdThe formatted content will be printed to standard output.
If you find gdfmt useful, consider supporting its development:
- Ko-fi: https://ko-fi.com/emersonmx