r/vscode • • 15h ago

Unity C# errors

for the past day when i’ve opened up any scripts from my unity project it’s showed red lines under basically everything. The only thing that will fix it is selecting “Prefer C# Extension” in settings but then that disables intellisense and my unity plugin. I’ve tried nearly everything like regenerating project files, re installing it aswell as the plugins and nothing will work. Please help me because this will kill me if i can’t fix it

1 Upvotes

4 comments sorted by

1

u/knobby_67 15h ago

Tell us faults, is,  does it build?

1

u/Ok_Income7995 14h ago

it’s like a ghost, there’s no errors, it builds completely fine, i’ve tried running a few commands through the terminal to check if it can locate the files and it can so it’s really confusing me

1

u/knobby_67 14h ago

Rather than spend ages trying to fix and unless someone comes back with a good answer it might be easier to completely remove VSC and reinstall

1

u/otheyhigh 8h ago

If you hover over the errors, the tooltip should have the source of the error. It most probably is an incorrect linter, language server or formatter that is running and needs to be disabled.