Closed ultsi closed 1 week ago
4.3.dev3
1.86.1
2.0.0
linux
The code formatter removes spaces around the || operator in if clauses. It doesn't remove spaces around or.
||
or
func test_if_or() -> void: var a := false var b := true if a || b: pass if a or b: pass
After autoformatting:
func test_if_or() -> void: var a := false var b := true if a||b: pass if a or b: pass
Thanks for the report. I never use ||/&& because or/and are available, so I forgot them when I we were building the formatter tests.
&&
and
Godot version
4.3.dev3
VS Code version
1.86.1
Godot Tools VS Code extension version
2.0.0
System information
linux
Issue description
The code formatter removes spaces around the
||
operator in if clauses. It doesn't remove spaces aroundor
.Steps to reproduce
After autoformatting: