IntelliSense and Omnisharp issues

I have tried all of the steps outlined in the IntelliSense Issues? section of the Unity 3D course. So far, nothing has worked. When I type in something the lecturer types, I don’t get any IntelliSense suggestions like he does. When I make a mistake that the lecturer also makes, mine doesn’t get outlined and no suggestions for fixing it are presented while the lecturer gets all of this.

I have installed .NET Core 3.1, .NET Developer pack 4.8, and .NET 6.0. I have all the relevant extensions, and I have changed the C# settings to what was suggested. My Unity version is 2021.3.1f1, and I have uninstalled it twice so far. I have also uninstalled and reinstalled Visual Studio Code several times.

I get this error whenever I try to get an IntelliSense suggestion by typing a function.

Is there anything I can do to get Visual Studio Code to work as intended?

Hi Trigcase,

Welcome to our community! :slight_smile:

Please follow the instruction on this website and make sure all required extensions are installed: https://code.visualstudio.com/docs/other/unity

If the issue persists, please check the console of VS Code (not Unity!). If the .NET Framework 4.7.1 (Developer Pack) is mentioned there, download and install it from the official Microsoft. Here is the link: https://dotnet.microsoft.com/download/dotnet-framework/net471

Depending on your version of Unity, it might be that you will have to install the “Visual Studio Code Editor” package in Window > Package Manager in Unity.

  1. Press Ctrl + Shift + P in VS Code.
  2. Type “OmniSharp: Select Project” and press Return.
  3. Select the solution workspace entry.

Maybe you’ll have to reboot your computer. Then launch Unity again and open one of your scripts.

Did this help?


See also:

I have done everything that was previously suggested and what was in the website you linked. Now some IntelliSense does show up, but I checked and not all of the suggestions the lecturer is getting are popping up on my screen. It should be fine for now though, thank you.

If the issue persists, feel free to install and use Visual Studio (Community Edition). For some students, VS Code simply does not work well. Maybe due to a problem with Unity, some update or whatever.

  1. Download VS and follow this instruction.
  2. Select VS as your External Script Editor in Unity (Edit > Preferences > External Tools).
  3. Install the “Visual Studio Editor” package in the Package Manager.

That should work.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms