'Why is VS Code not showing errors in C# (Unity)

I'm using VS Code and Unity, and I noticed that errors are showing on Unity console but not the VS Code, I looked up and did everything that this page says and nothing worked: https://code.visualstudio.com/docs/other/unity

Is there a fix to this?



Solution 1:[1]

I had this problem too. One day Code's errors were connected, the next day, they had disappeared. Most frustrating. This worked for me:-

  1. Install the latest .net SDK from here DotNet SDK download

2) Regenerate project files from Edit->Preferences->External Tools

Note: just regenerating the project files didn't work for me. Needed DotNet SDK update.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mikey Bally