I have been using Visual Studio Code for a while and I have had no issues. However, suddenly, it is as if Vs code does no understand unity script at all. There is little auto correct, and when there is it corrects something that is right to something I don’t want. It does not properly show errors either, even if they show in the unity log. How do I fix this? It seemed to start when I have created a new project.
Anyone?
Did you install new version of VS?
Make sure its entry is set in preferences/external editor.
GL
I reinstalled and checked entry. I have discovered that apparently Vs code works for one project but not for another project?
Do you have snippets installed?
Never heard of that, so I’m pretty sure not unless it installs along visual studio
Delete the local .sln and other VS files from the root of the project and try again (make a backup first of course)
Ummm… where would those be?
As mentioned, at the root of the project. Along with /Assets, /ProjectSettings etc. At that same level. At least that is where Visual Studio places them, not sure about Visual Code.
I deleted everything I could see relating to vs code and it appeared they were rebuilt when I started Unity. The issue was not fixed…
No, they are not “rebuilt”, only when you launch Visual Code or Visual Studio.
Yea they were “rebuilt” when i launched vs code I mean cuz there was a lag spike or something. Sorry
Yes, that is expected. Sorry it’s still not working for you. What’s different between your two projects, are they located in the same area on your disk, like under C:\Users[name]\Documents\ ? (to confirm permissions) . What about a brand new project?
If it helps, I have had this problem for a long time with monodevelop on all my problems, and because of that I thought it was monodevelop being broken, so I switched to Vs Code. It seemed to work until I have created a new project and it did not work.
Made a new project, does not work either.
Old project should not have anything different about it, as I would not tamper with the files for no reason. However, there was a sizable time difference between the creation of the old project and the new project.
Help?
Try using Visual Studio 2017 instead of Visual Code
Tried using visual studio and it seemed to work
Have you tried installing the Visual Studio Code Editor package from the package manager?
no
I believe it was a suggestion. But it sounds like you already have Visual Studio working.