Hello! I am having a few issues with Intellisense on Windows. I have followed all of the instructions, including the Intellisense instructions from the introduction module and the intellisense blog posts underneath the video. I’ve downloaded all required .Net and the Developer Pack, I’ve ensured that the Omnisharp settings are corrected, and I’ve checked to see that VS Code is the external tool used for Unity/installed in the unity package manager.
I cannot get the transform command and rotate command to pop up. My screen looks like this:
The only setting I could not find was the Omnisharp: Use Global Mono while I was searching through settings. In the Omnisharp Log, There was a notification that it “could not locate MSBuild instance to register with Omnisharp.”
Make sure the correct .NET Framework is installed. Some students install 4.8 but that does not work.
Did this help?
If not, 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.
I didn’t ask the original question, but I did find the only solution to work was using Visual Studio 2022 Community Edition. I tried everything else, including the instructions in the 2D course. None of it got IntelliSense to work.
Some other students I’ve talked with are having the same issues with Visual Studio Code, at first we thought it was a Mac issue but apparently it’s happening on PC as well, that’s good to know, it narrows down the possibilities, if I work out a solution I’ll be sure to post it here.
I had the same problem. The C# extension for VS Code has a message that “If you still need Unity or .NET Framework support, you can set omnisharp.useModernNet to false in your VS Code settings and restart OmniSharp.”. So I had to deactivate it in the settings of the extension:
Update:
I also had another problem causing this that I forgot about, but I ran into it again. IntelliSense doesn’t work if the External Script Editor is not set to VS Code. For some reason it reverted back to Open by file extension in which case it just opens the script as a standalone file.
Still doesn’t work for me… I’ve tried everything. So far, the only thing that works is VS Community. I just wish it wasn’t so bloated!
Update:
I figured it out. You must download the .NET Framework 4.7.2 Developer pack. Restart VS Code, and viola, it works. I should also mention that Omnisharp ModernNet is still checked, for me.
So, to recap:
Download VS Code
Install Unity Snippets and C# (if not already installed
Download .NET Framework 4.7.2 Developer Pack
Change external editor in Unity to VS Code (Might need to restart if you don’t see it)
In the Start() function, type “transform” and see if intellisence is working. It should be!