Hi, i have a problem with autocomplete in vs. I downloaded all extensions that was shown in the “Download Unity & VS Code” video. I started worring becouse in the Using AddRelativeForce() video, Rick has a lot of autocomplete options after “rb.” and i dont. Can someone help me?
Edit1 I have installed .net and still dont work
Edit2 I know my english isn’t perfect so if you dont understand something, tell me.
Hi,
Welcome to our community!
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 website. 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.
- Press
Ctrl + Shift + P
in VS Code. - Type “OmniSharp: Select Project” and press Return.
- Select the solution workspace entry.
Maybe you’ll have to reboot your computer. Then launch Unity again and open one of your scripts.
See also:
- Forum User Guides : How to mark a topic as solved
All of that solutions don’t work for me.
Now i have error on output:
Could not locate MSBuild instance to register with OmniSharp.
Maybe you could test no149’s solution:
And this:
Still dont work for me
I have still that error on output
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.
- Download VS and follow this instruction.
- Select VS as your External Script Editor in Unity (Edit > Preferences > External Tools).
- Install the “Visual Studio Editor” package in the Package Manager.
That should work.
Thanks! That works for me!
they no longer are packaging the ms build tools with omnisharp for whatever reason. You can download them manually from the Visual studio website here
You only need to install the .net build tools, you can unchecked all the other modules.
Thanks a lot for sharing your solution!
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.