material-maker icon indicating copy to clipboard operation
material-maker copied to clipboard

Format GDScript files to follow the GDScript style guide

Open Calinou opened this issue 6 years ago • 3 comments

There's an official GDScript style guide since Godot 3.0. To get cleaner-looking code, we should reformat code to follow it the best we can.

Similar to #30, I can work on this if this is desired :slightly_smiling_face:

Calinou avatar Oct 19 '19 20:10 Calinou

Well, please don't waste your time on code formatting. :) I'm all for clean code, but this should be taken care of while actually coding/fixing stuff.

Maybe a coding style checker plugin for Godot could help (or maybe it exists already...) ?

RodZill4 avatar Oct 19 '19 21:10 RodZill4

Maybe a coding style checker plugin for Godot could help (or maybe it exists already...) ?

There's an open pull request for this, but it seems it'll take a while to be merged.

Calinou avatar Oct 19 '19 23:10 Calinou

There's a standalone GDScript formatter written in Python here: https://github.com/Scony/godot-gdscript-toolkit

Maybe we could give it a try.

Calinou avatar Mar 11 '20 09:03 Calinou