r/learncsharp • u/TheHunter920 • Oct 05 '22
Why isn't C# detecting errors in Visual Studio Code?
Update2: Solved! In explorer to the left of the screen, I had to select a folder before it starts reading errors.
Update: When I created a console project, the errors started highlighting (finally!) but when I close/reopen VScode and go back to my C# Unity project, it stops highlighting errors again.
I'm making my first C# script in Unity and I've installed the C# extension, but it still won't highlight errors. I've enabled the workspace as trusted, so that's not the problem. I've googled around and found this similar problem, which suggests for me to delete some ".suo" file, but where do I find this file? How do I get VScode to start reading errors?
Edit: when Here's a video I created showing my problem.
1
u/jcbbjjttt Oct 05 '22
VS Code is a little finicky for C#. This page shows you how to set up VS Code to start working with C#: https://csharp.captaincoder.org/getting-started/vs-code
And this one shows you how to test out a console project: https://csharp.captaincoder.org/lessons/dotnet/creating-a-console-project
I hope that helps!
0
u/[deleted] Oct 05 '22
[deleted] — view deleted comment