Open muno777 opened 10 months ago
Found in v4.2.stable.official [46dc27791]
Godot v4.2.stable - Windows 10.0.22621
In the official GDScript style guide, the closing braces for arrays, dictionaries, and enums are not indented:
However, the auto-indent in the editor doesn't follow this:
I'm not sure if this strictly counts as a "bug", but it is a gap in the current auto-indent behavior.
Open a new GDScript file and create an enum (with auto-indentation enabled):
N/A
I can confirm this on 4.2.stable, both with enum and var creating a Dictionary.
enum
var
The behavior in VS Code is to deindent when entering }, so I think it makes sense to match that behavior as well.
}
Tested versions
Found in v4.2.stable.official [46dc27791]
System information
Godot v4.2.stable - Windows 10.0.22621
Issue description
In the official GDScript style guide, the closing braces for arrays, dictionaries, and enums are not indented:
However, the auto-indent in the editor doesn't follow this:
I'm not sure if this strictly counts as a "bug", but it is a gap in the current auto-indent behavior.
Steps to reproduce
Open a new GDScript file and create an enum (with auto-indentation enabled):
Minimal reproduction project (MRP)
N/A