Skip to content

Add auto-formatter for gdscript exposed via command line switch and editor menu item

Rafał Mikrut requested to merge github/fork/frugs/gdscript_auto_formatter into master

Created by: frugs

Here's a stab at going some way towards resolving issue #7392.

I've implemented a very basic auto-formatter for GDScript using the existing GDScript Tokenizer. I took the least intrusive and easiest way of exposing this and I've exposed it as part of the main binary, enabled using the --format and --script SCRIPT command line switches.

EDIT: This feature has now also been exposed in the script editor UI as a menu item in the edit menu.

Merge request reports

Loading