Having trouble getting VS code to work with unity on new PC

Hey there! I’ve been having a lot of trouble with getting VS code to work with unity on my new PC.
Basically, it seems Omnisharp, intellisense, or both aren’t working and no matter what I try I can’t get it to cooperate. As well as code that should be considered an error, VS code doesn’t tell me the code is an error. (no red error squiggles?)

I’ve made a few games in unity before and just want to mess around with it on my new PC, but I’m really getting frustrated. Here’s what I’ve done:
-Project Folder is open in VS Code
-Regen Project files

  • .NET Core SDK, and .NET Framework 4.7.1 Developer Pack installed

Here’s an image of how my VS Code looks.
8973721--1233847--upload_2023-4-25_23-3-29.png

If anyone has any idea, I’d love some help. Thanks!

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 VSCode package inside of Unity: Window → Package Manager → Search for Visual Studio Code Editor → Press the Update button

Also, this: No suggestions in Vscode

1 Like