Add auto-formatter for gdscript exposed via command line switch and editor menu item
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.