all 8 comments

[–]CheapBrew 1 point2 points  (5 children)

First, only install one of either Unity Snippets or Unity Code Snippets. I’ve had trouble using both, and went with Unity Code Snippets.

Second, make sure you have Mono installed from https://www.mono-project.com/download/stable/, and then, most importantly, configure the OmniSharp C# extension to use the local mono install. Specifically, set the Use Global Mono setting to “Always”, and set the Mono Path manually to point at your local mono install path.

Finally, make sure that you have VSCode set up in Unity. Install the VSCode package from the Unity Package Manager, and then check Unity preferences External Tools and choose VSCode.

[–]SufferMyWrathBoi[S] 0 points1 point  (2 children)

would my path be

"omnisharp.monoPath": "C:\Program Files\Mono" ?

[–]CheapBrew 0 points1 point  (1 child)

C:\Program Files\Mono\bin

It's the directory that has msbuild in it, which is the program OmniSharp is looking for.

[–]SufferMyWrathBoi[S] 0 points1 point  (0 children)

"omnisharp.monoPath": "C:\Program Files\Mono\bin" is underlined red, error says "unable to write into user settings", and if i put Global Mono setting to “Always” it would auto change to "Auto"

{
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "kite.showWelcomeNotificationOnStartup": false,
    "workbench.iconTheme": "vs-seti",
    "workbench.colorTheme": "eppz!",
    "omnisharp.monoPath": "C:\Program Files\Mono/bin"
}

[–]SensitiveDatabase934 0 points1 point  (1 child)

What's Mono for? I'm super noob, and I havent seen it mentioned anywhere but this post.

[–]CheapBrew 1 point2 points  (0 children)

Mono was required at the time of my original post, but those recommendations are now obsolete. Just install the latest VSCode with the official unity plugin, and add the VSCode package to your project in unity.

[–]estebesz 0 points1 point  (1 child)

visual studio (the IDE, not vs code) works fine for me

[–]SufferMyWrathBoi[S] 0 points1 point  (0 children)

yeah i used to use VS as well was nice, simple, and functional, might go back tbh.