-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Scony's code formater #18
Comments
Hi @NathanLovato glad to see you've taken over the project ❤️, I worked on the initial integration with @grndctrl. I use the following config in Zed for formatting which can act as a workaround until the extension supports it directly, just thought I'd share in case it helps: "languages": {
"GDScript": {
"format_on_save": {
"external": {
"command": "gdformat",
"arguments": ["-"]
}
}
}
}, |
Thanks! It's probably a better solution than what could be provided by the extension. One reason being gdformat will fail on some syntax (e.g. lambdas in Godot 4), and also format some things in ways you may not want currently (the line splitting tends to wrap many short elements vertically, the algorithm cannot balance all lists of things). |
Hmm, this doesn't seem to be working for me anymore, I'm quite sure it did work before.
EDIT: Weird, adding the full path to |
There's a formatter made by a member of the community while waiting for the official one: https://github.com/Scony/godot-gdscript-toolkit
It's a command line tool that can format GDScript files. We could add support for it in the extension.
The text was updated successfully, but these errors were encountered: