I’ve been following along with the Unity 2D course for a little while now, and while using VSCode there aren’t any error squiggles. I’ve looked up how to solve the problem, but that hasn’t helped. Most commonly, the answer given is just “search for error squiggles in settings”, but for some reason that doesn’t pull up anything relevant:
I tried updating .NET, I uninstalled and reinstalled the C# intellisense extension, I’ve looked in the settings.json file, restarting my PC every time, and still VSCode doesn’t seem to acknowledge that there is such a thing as error squiggles. I have absolutely no idea what else I can do.
Try restarting OmniSharp:
Ctrl + Shift + P to Show All Commands
Type Omnisharp in the search box
Click on the one that says:
Omnisharp: Restart Omnisharp.
Hope this helps.
-R
Disable C# Extenstion, close VS Code, Open VS Code and Enable C# Extension.
Other than that I’d say give Jetbrains’ Rider IDE a shot. I found that I no longer have these struggles because it works “out of the box” the way you’d expect it to and Unity integration is built in. It’s free for the first 30 days. Jetbrains Rider IDE
For example: I don’t use Windows, I use a distro of Linux called Pop!OS, As such, my experience is very different from what the instructors show. Many of the code snippets don’t work the same way for me as they do in the instructors’ videos.
If your biggest problem is the red error squiggles don’t appear, it might just be your platform.
Also, if it isn’t breaking your game building experience, I’d move on. Unity will definitely let you know when your code has an error, and the error message will tell you which line of code, and even how many spaces to the right where the error is suspected.
You don’t really need the red squiggles…but like I said, it might be your platform what is making the difference.
Side note: There are some Unity extensions that can be installed that you can try. The extensions might also behave differently from platform to platform.