I wanted to try coding in gdscript with vscode, it pretty much works but everytime im writing code and the code has errors, every single thing that is typed in vscode is then shown in Godot like this:

If anyone has used vscode with gdscript and knows how to fix this, please let me know

Why not the internal script editor ? I find it a huge pro for Godot.

Guessing because no code, from afar it looks like there is a problem with indentation. GDscript, just like Python, depends on indentation. And use tabs for indentation. Maybe your editor is set to expand indentation to blanks and that irritates the parser, don't use blanks for indentation.

    It could also potentially be an issue of a mixture of tabs and spaces - though I think VSCode will convert all of them on save? I think it does that for Python but I’m not sure if that is due to the Python extension or not.

      Pixophir I don't know, I just wanted to try out vscode with godot by pure curiosity, guess i'll just stick with the internal editor

      TwistedTwigleg I tried using only tabs but the errors just won't go away, I'm using the godot-tools extension for vscode, maybe another extension/configuration is needed?

      I would recommend the built-in code editor. I find it integrates better, like with code completion and clicking to functions or documentation. However VSCode works as well. I did set it up at one point just to check. There are two extensions, you only need one of them, but I forget which one. And there is some setup required, it can be kind of tricky. It's really only needed if you want to code C#, since it's not much better in terms of GDScript. I think this was the guide I followed, if you want to try again.

      https://github.com/godotengine/godot-vscode-plugin

        cybereality I couldn't find any way to make the errors dissapear, so im just gonna follow everyones recommendation and use the internal script editor. Thanks though