Visual Studio stopped working right.

I don’t know what happened but Visual Studio now opens up to edit scripts properly, however I can no longer jump to other files by “go to definition”. Really weird. I uninstalled Visual Studio and attempted to reinstall with Unity Hub (it won’t do anything when I say to install), then downloaded VS 2019 Community from Microsoft website and chose “Unity Development” section. Installed but same problem.

I also have about 6 versions of Unity installed and haven’t tried all of them. Unity 2019.3 has the problem I describe and they probably all do.

Any ideas how to fix? Very annoying.

Does this happen in a new project?

Yes.

What seems to be happening: it’s just opening the .cs file I double-clicked in Unity, not the solution or project like it’s supposed to. I noticed there was no “Solution Explorer” in Visual Studio so that makes sense why I wouldn’t be able to jump around to other referenced classes.

If I Open the .sln file from Visual Studio by browsing to it, it works properly, but the “shortcut” of opening a class from Unity is broken and just opens the single class in Unity.

Is there some kind of setting where I can fix this? Pretty weird. I do have a work-around for now but it’s annoying.