I’m using VS code to write c# scripts for my Unity projects.
I got all required extensions and set vs code as the external script editor for Unity.
But when I open c# script on VS Code, the auto completion doesn’t work and vs code fails to highlight keywords.
I fixed the problem few days ago, by deleting all extensions, reload window, reinstall the extensions, restart the language server. The auto-completion and keyword highlighting now works.
But everytime I restart VS code or opening other Unity project’s scripts, the problem happens again, and I have to do the whole process again.
How can I fix this problem once and for all?
2
Answers
Just change your IDE. Yep, there was time I was in love with VSC, but eventually I had problems with Unity too. VSC extensions sometimes are not all-powerfull and can work bad sometimes. Use other IDEs that are created for C# and support Unity for better autocomplete. I use JeyBrains Rider, it’s not free, but has trials for new accounts (you kinda can make infinite accounts, but I don’t know if it is legal), everything works fine there. Maybe VisualStudio (free) can also fit.
Well Ive got the exact same issue just yesterday on Ubuntu. Let me find an answer that fixed it for me… here it is, but it is for linux, so you just have to download everything for windows if you use windows