diff --git a/getting_started/scripting/gdscript/gdscript_styleguide.rst b/getting_started/scripting/gdscript/gdscript_styleguide.rst index 94564ca44..5310e2626 100644 --- a/getting_started/scripting/gdscript/gdscript_styleguide.rst +++ b/getting_started/scripting/gdscript/gdscript_styleguide.rst @@ -481,14 +481,14 @@ Use snake_case for file names. For named classes, convert the PascalCase class name to snake_case:: # This file should be saved as `weapon.gd`. + class_name Weapon extends Node - class_name Weapon :: # This file should be saved as `yaml_parser.gd`. - extends Object class_name YAMLParser + extends Object This is consistent with how C++ files are named in Godot's source code. This also avoids case sensitivity issues that can crop up when exporting a project