Install Asset
Install via Godot
To maintain one source of truth, Godot Asset Library is just a mirror of the old asset library so you can download directly on Godot via the integrated asset library browser
Quick Information
pretty.gd for Godot
A formatter for GDScript that just works!No Python! No binaries! No dependencies!
Supported Engine Version
4.0
Version String
0.1
License Version
MIT
Support Level
community
Modified Date
4 hours ago
Git URL
Issue URL
pretty.gd for Godot
A formatter for GDScript that just works!
No Python! No binaries! No dependencies!
Usage
Godot editor
- Install the plugin in the
res://addons/folder. - Adjust editor settings to your liking.
- Profit! Your GDScripts will be prettified automatically when you save.
GDScript API
Example
extends Node
var Prettifier = preload("res://addons/pretty-gd/pretty.gd").new()
func _ready():
# configure indentation
Prettifier.indent_str = "\t"
Prettifier.tab_size = 4
let filename = "my_script.gd"
let input = FileAccess.get_file_as_string(filename)
let output = Prettifier.prettify(input) # <- This is the main function
var file = FileAccess.open(filename, FileAccess.WRITE)
file.store_string(output)
file.close()
Known Issues
If you come across any other issues with using this software, please let me know.
Release Notes
0.1
- First release! 🎉
A formatter for GDScript that just works!
No Python! No binaries! No dependencies!
Reviews
Quick Information
pretty.gd for Godot
A formatter for GDScript that just works!No Python! No binaries! No dependencies!
Supported Engine Version
4.0
Version String
0.1
License Version
MIT
Support Level
community
Modified Date
4 hours ago
Git URL
Issue URL