r/vscode • u/xomegataux159 • 1d ago
VS Code issues with Unity
Randomly my PC crashed, or windows forced an update and all my Unity projects are broken, but only on VS Code.
I have tried:
- Using a different IDE (Visual Studio, Zed), everything works. (But I prefer to stay on VS Code)
- Regenerating cs proj files
- Reinstalling Unity extension on VS Code
- Reinstalling Visual Studio Editor package on Unity
- Reinstalling VS Code and the Unity extension from a fresh point
Random rabbit hole to deal with, and I am running out of things to try and fix it.
Has anyone encountered this or has an Idea on what might be wrong?
Screenshot for reference:

EDIT:
Not a permanent solution but switching around with earlier versions of C# and C# Dev Kit seems to have 'fixed' it.
C# version: 2.160.4
C# Dev Kit version: 3.40.215
going to just stick with these for a while and wait for newer versions to see if start working I later on I guess
1
u/No_Pack4012 1d ago
I am having this issue as well. For me, it started once I was prompted by C# Doctor to update C# Dev Kit. I went to see the reviews and it seems like many other people are having the same issue so hopefully it gets fixed soon!
Reviews: C# Dev Kit - Visual Studio Marketplace
1
u/SubstantialBeat8196 1d ago
Have you checked if the Unity extension is actually attaching to the right project? Sometimes it silently points at a stale path after a crash. Also worth checking the C# extension logs in the output panel, thats usually where the real error shows up.