Formats GDScript using a lossless lexer, concrete syntax tree (CST), and structured layout printer. The formatter is implemented entirely in GDScript.
Use Format Document (Ctrl + Alt + L) to format the current GDScript or shader file.
Godot shader files (.gdshader) are also supported through a separate formatter.
By default, formatting organizes declarations according to the configured Godot-style member order while preserving strings, comments, and declaration-associated annotations. Set simple_gdscript_formatter/organize_members to false in Project Settings to preserve the original declaration order.
The formatter supports nested classes, lambdas, match branches, annotations, typed collections, and multiline expressions. Formatting is deterministic and idempotent, and Godot editor tab/space indentation preferences are respected.
Member organization can change the order in which member initializers run. Disable this option for scripts that depend on the original initialization order.
The Open in External Editor command (Ctrl + E) opens the current file in your configured external editor, such as Rider or VS Code, without requiring Godot's Use External Editor setting to be enabled.
Changelog for version 0.5.0
No changelog provided for this version.