I released a game in March and it was the last time I used Unity (and Visual Studio) for a few months. I opened it up today to do some more work, only to discover IntelliSense has stopped working. Some details:
-
I’m using C#
-
Using VS 2022 Community Version 17.2.5, 64-bit
-
I did recently download VSCode and I think this was before I noticed an issue with Visual Studio, I wouldn’t rule out the possibility that the install changed some shared settings and screwed up IntelliSense.
-
Both Unity and non-Unity dependencies are white in color (using dark theme) and do nothing when Ctrl + clicked. So anything from MonoBehaviour to a List to a class defined in a separate file fail to show up. Ctrl + click still works for things defined in that file; if I define a function and call it somewhere else in the same class, I can flip between those two instances.
-
I’ve already tried checking/unchecking “Auto list members” and “Parameter information” in Visual Studio.
-
I’ve already tried restarting Visual Studio and my machine.
-
I’ve already tried regenerating .csproj files in Unity (which I didn’t expect to work since there are non-Unity dependencies having issues too.)
Any suggestions?
Restarted Visual Studio and machine, checking/unchecking “Auto list members” and “parameter information,” regenerating .csproj files in Unity. In all cases I would hope IntelliSense would work again and recognize keywords like System or Collections.