Intellisense issues after following the advice in the course

Hi everyone,

My intellisense is broken. I managed to get through without it, or maybe with partial functionality during the obstacle course game, but now when I’m starting the second game, typing “Input.” doesn’t give me the list of keywords accessible from “Input” hence I think it’d be best to sort it out now.

I’ve tried ‘turning it off and on again’. I’ve definitely got the visual studio code package installed as you suggest in the intellisense help page. Whenever I try to set Visual Studio Code as the external script editor in Unity: Edit > Preferences > External Tools, it seems to revert back if I close and reopen my project and navigate to that same window again, however vs code is indeed still being used as the default editor when I open the scripts in Unity.

I’ve installed .NET 6.0 and .NET Core 3.1.4 as well as the optional/suggested .NET developer pack version 4.8 which is what microsoft recommends). This hasn’t fixed the issue. “Omnisharp: Select Project” in VS code also doesn’t fix the issue.

One thing I was unable to do was tweak the settings of the C# extension so that “Omnisharp: Use Global Mono” is set to “always” as this isn’t an option when I scroll through the Extension Settings list. I am using the same C# installation from Microsoft as is shown in the screenshots for Intellisense. And that’s the end of the intellisense help page so that’s why I’m posting this here.

Sorry for the long post where I’ve basically recounted the instructions again. It was partially to show anyone reading that I have actually tried everything suggested, and also so that I knew I’d actually read the instruction page carefully and not missed trying any solutions.

Thanks

Umm, I’m not sure if this is actually fixed for certain yet, but I had to reply to give an update.

I was looking online on stackexchange forums where people have had similar issues. I also saw in the lecturer’s video that at the top of the code, “using UnityEngine” was coloured/shaded differently to the other two “using system.” lines. I typed in, inside void Update(), the line “UnityEngine.UI” and then suddenly it seems as if intellisense sprung to life, with “Input.” showing me things like “Input.acceleration” in a dropdown menu.

I have no idea what happened there but for now it seems to be working.

If the problem is not fixed, 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 website. Here is the link: https://dotnet.microsoft.com/download/dotnet-framework/net471

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

Privacy & Terms