Solution doesn't load

Hi, I have a problem 3 days now. I don’t know why but when I open any script in unity the solution doesn’t load, only the script I opened is loaded. I already reinstalled unity and visual studio but it doesn’t help. I’m also using git and working with another one guy and I noticed I have a local branch where everything still works but when I switch to main it doesn’t work, so I think it’s not blame of visual studio. The guy said he didn’t change anything affecting vs. I didn’t find anything across the internet so this forum is my last hope.

Try using the Assets > Open C# Project menu option first, instead of opening a script directly. Does that load the solution properly?

This may help you with intellisense and possibly other Visual Studio integration problems:

Sometimes the fix is as simple as doing Assets → Open C# Project from Unity. Other times it requires more.

Other times it requires you also nuke the userprefs and .vsconfig and other crufty low-value high-hassle files that Visual Studio tends to slowly damage over time, then try the above trick.

Barring all that, move on to other ideas:

Also, try update the package inside of Unity: Window → Package Manager → Search for Visual Studio Editor → Press the Update button

Update: The VSC extension has been deprecated.

There is a community fork available that is receiving updates.

Also, this: No suggestions in Vscode

Thanks a lot for answers, installing Visual Studio Editor package helped. Didn’t know that there was this package, I thought it’s only for VS Code.