visual studio code intellisense not working(mac)

Viewed 1705

after opening the C# project I get

fail]: OmniSharp.MSBuild.ProjectManager
        Attempted to update project that is not loaded: Desktop/UNITY STUFF/action platformer/Assembly-CSharp.csproj
[fail]: OmniSharp.MSBuild.ProjectManager
        Attempted to update project that is not loaded: Desktop/UNITY STUFF/action platformer/Assembly-CSharp-Editor.csproj

does anyone have a solution? thanks in advance

2 Answers

Close Visual Studio. In Unity go to Edit < Preferences < External Tools And make sure External Script Editor is Visual Studio so that additional checkboxes appear.

Make sure Generate all csproj files is checked, and Editor Attaching is checked

On MacOS: Check all checboxes. Click "Regenerate project files".

You may need to close and reopen Visual Studio.

I solved this issue by doing the following on VSCode:

  • Go to settings. (Code -> Preferences -> Settings on Mac)
  • Search "omnisharp".
  • Find the section "Omnisharp: Use Global Mono," and set it to "always."
  • Find the section "Omnisharp: Path," and click "Edit in settings.json."
  • Change "omnisharp.path" as "omnisharp.path": latest".
  • Reload the window.

Original answer is here: https://stackoverflow.com/a/63603883/9337700

Related