
D
Publisher
ducviet321
Simple Format On Save
Tools
Formatting GDScript Code Save Automation Consistency Lightweight Indentation
Automatically formats GDScript whenever you save it, without installing gdtoolkits.
This plugin has been mirrored from the Godot Asset Library.
The plugin author is in no way affiliated with Gadget.
If you are the author of this plugin and would like this mirror removed, please contact support@gadgetgodot.com.
Simple Format On Save š
A Godot addon that automatically formats GDScript whenever you save it.

Features
- Does not require gdtoolkit
- Automatic code formatting when saving files
- Clean and consistent code style
- Zero configuration, lightweight and simple to use
Installation
- Download or clone this repository
- Copy the
addons/SimpleFormatOnSavefolder into your project'saddonsdirectory - Enable the plugin in Project Settings -> Plugins
Formatting Rules
The addon applies the following formatting rules to your GDScript code:
- Consistent indentation using tabs
- 2 blank lines between functions
- No trailing whitespace
- Space before statements (if, for, while...)
- Space after code block
- No extra blank lines at the start or end of files
- Proper spacing around parentheses and brackets
Usage
Simply save your GDScript files (.gd) and the addon will automatically format them according to the rules above.
License
See the LICENSE file for details.
Special Thanks š
This addon combines the functionality of
š° simple_gdscript_formatter by madwind š° Format On Save by ryan-haskell