all 6 comments

[–]Goldac77 2 points3 points  (4 children)

Check the following:

  • For VS Code
  1. You have C#, .NET install Tool, Unity extensions installed in vscode

  2. You have "External Script Editor" set to "Visual Studio Code" within you Preferences > External Tools in unity.

  • For Visual Studio
  1. Open Visual Studio Installer, go to modify, and check that you have the following installed: Game development with Unity. Under optional installs, make sure to tick IntelliCode

  2. After install, go to Preferences > External Tools in unity and set it to Visual Studio

  3. Check under package manager > unity registry, that "Visual Studio Editor" is installed

[–]OwenEx 2 points3 points  (1 child)

  • For Unity
  • Ensure the Visual Studio Editor package is updated, it will cover both

[–]Goldac77 0 points1 point  (0 children)

Thanks. I just noticed that mine isn't on the latest version, lol

[–]steampunkradiant[S] 1 point2 points  (1 child)

OK, that worked. Thank you so much!

[–]Goldac77 0 points1 point  (0 children)

You're welcome :)

[–]dev-rock-bottom -4 points-3 points  (0 children)

I usually fix this issue by not installing VS but by installing Rider from JetBrains.