I'm using Godot C# (Editor version, not GDExtension), and I followed the project setup described here.
Unfortunately, it didn't work on VS Code as the nuget.config
file wasn't recognised automatically.
What I had to do was to execute dotnet restore --configfile nuget.config
in a terminal window and restart VS Code.
After that, the C# bindings will work.