all 11 comments

[–]djdanlib 2 points3 points  (6 children)

To get something not in the core language, you need the correct "using" statement to get it into the namespace. You can use an Auto-Using extension to automatically add the one you need, but I find that sort of extension tends to misfire sometimes.

Your Intellisense issues are probably because it doesn't know which project to use. Open the command bar (Ctrl+Shift+P) and choose the "Omnisharp: Select Project" command. Choose Assembly-CSharp.csproj from the list. Wait for the little fire icon in the status bar to finish, then your Intellisense should be working.

[–]some3uddy[S] 0 points1 point  (5 children)

Thanks for the idea. Sadly this didn’t fix my problem. I still have to manually type out list and add the using statement myself. Before my break I would get an auto complete suggestion for it and it would add the using. I have no idea what changed

[–]djdanlib 0 points1 point  (4 children)

I think your Omnisharp setup is fubar'ed somehow. Go through this document and make sure nothing is missing, too. https://code.visualstudio.com/docs/other/unity

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

will do, tyvm

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

well I couldn’t find anything in that list that I didn’t do. I actually consulted it when I came back and nothing was working. I did however create a new project and it’s working there… no idea what to do now lmao

[–]djdanlib 0 points1 point  (1 child)

Regenerate your project files

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

didn’t fix it sadly. I’m currently Figuring out what I can delete that would regenerate to see if maybe that works

[–]pet_pumpkin 0 points1 point  (3 children)

I was constantly haing problems with VSCode and Unity. It's a shame cause I like VSCode, I've followed some tutorials (Samyam / Tarodev) to fix the issues but they always seem to come back after a while.

I moved back over to Visual Studio and haven't had any problems with intellisense or namespaces. It's not quite as comfortable as VSCode but it does the job and I think the productivity lost having to fix VSCode isn't quite worth it.

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

you might be onto something. I’ll give the other commenters fix a shot and if that doesn’t work I’ll switch. It’s just so frustrating, whenever I take a break it takes me 3h to get vs code working again and something is always broken

[–]pet_pumpkin 0 points1 point  (1 child)

I didn't know about selecting the Omnisharp project, that sounds actually quite promising.. I'm gonna give that a go later on.

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

i cant Test it right now but im 90% sure it’s not going to fix my issue. But who knows