Closed alagaG closed 4 months ago
This is a duplicate of #580, and as described there: Formatters in VSCode are only invoked when you request them.
I suspect that you have the "formatOnSave" or "formatOnType" settings enabled. You can either disable that globally, or disable it for just GDScript by adding the following snippet to your global settings.json
file.
{
"[gdscript]": {
"editor.formatOnSave": false,
"editor.formatOnType": false
}
}
Thanks, it worked perfectly.
Godot version
3.5.3.stable
VS Code version
1.86.2
Godot Tools VS Code extension version
2.0.0
System information
Windows 10
Problem statement
I've wrote my whole project with the official Godot style guide that differ from the current extension style guide. As example, the official recommendation is place 2 lines between methods, but the extension use just 1
Proposed solution
Create a setting option disabling the auto formatter.