Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be πŸ“–

Simple Format On Save

An asset by ducviet321
The page banner background of a mountain and forest
Simple Format On Save hero image

Quick Information

0 ratings
Simple Format On Save icon image
ducviet321
Simple Format On Save

Automatically formats GDScript whenever you save it, without installing gdtoolkits.

Supported Engine Version
4.4
Version String
0.1
License Version
MIT
Support Level
community
Modified Date
9 days ago
Git URL
Issue URL

Simple Format On Save 🌠

A Godot addon that automatically formats GDScript whenever you save it.

README Screenshot

Features

  • Does not require gdtoolkit
  • Automatic code formatting when saving files
  • Clean and consistent code style
  • Zero configuration, lightweight and simple to use

Installation

  1. Download or clone this repository
  2. Copy the addons/SimpleFormatOnSave folder into your project's addons directory
  3. 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

Automatically formats GDScript whenever you save it, without installing gdtoolkits.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Simple Format On Save icon image
ducviet321
Simple Format On Save

Automatically formats GDScript whenever you save it, without installing gdtoolkits.

Supported Engine Version
4.4
Version String
0.1
License Version
MIT
Support Level
community
Modified Date
9 days ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers