![intellisense not working with visual studio code unity intellisense not working with visual studio code unity](https://i.stack.imgur.com/IpqeV.png)
Once thats done, restart Visual Studio and see if IntelliSense now works. Set 2) the External Script Editor to the version of Visual Studio that you installed alongside Unity, then click on 3) the Regenerate project files button (if its there). I suspect this is forcing some kind of project file reload, but I'm not sure. How do I fix unity IntelliSense in Visual Studio Youll need to set the External Script Editor. From then on out, I can just double-click a script to open it from the project view and Intellisense will be enabled. This time, when VSCode is done loading, Intellisense works for me. In the Project view, right click on the script file and select "Open C# Project" from near the bottom of the menu.(This step may be unnecessary, but I do it every time out of habit.) After VSCode loads all its stuff, notice that Intellisense does not work, and close VSCode again. Double click on the new script file to open it in VSCode.
![intellisense not working with visual studio code unity intellisense not working with visual studio code unity](https://i.stack.imgur.com/P3K5n.png)
In the Project view, create a new script file.I do not have any Unity-specific VSCode extensions installed, but I don't think they would hurt this. I'm using Visual Studio Code with the C# extension, and have it set as Unity's External Script Editor. (And for my own reference when I inevitably hit this again after a gap in new projects. The fix that I've found is slightly different from anything I'm seeing above, so I thought I'd share it in case it helps anyone else still struggling with this. I use Visual Studio Code and Intellisense is non-functional every time I create a new Unity project lately. In my case, I just installed Unity and Visual Studio Code for the first time a few days ago and I just didn't know about the extra Unity extensions that I REALLY needed. I installed all of the above, and I'm happy now!
![intellisense not working with visual studio code unity intellisense not working with visual studio code unity](https://code.visualstudio.com/assets/apple-touch-icon.png)
Two additional optional Unity tools to consider installing: I would've provided links but the Unity Forum marks it as spam.įor me, the Unity Debugger finally fixed it!
INTELLISENSE NOT WORKING WITH VISUAL STUDIO CODE UNITY INSTALL
In addition to the steps listed above in this thread, there is also a Visual Studio marketplace addon that I had to install! Install the following free addon extensions from Visual Studio Marketplace. Unity recognizes that Visual Studio Code is my External Script Editor, but intellisense in Vis Studio Code still does not recognize or provide autocomplete for Unity namespace items.Įdit: After a bit of searching I found the solution! I added the checkboxes to all of them, but it had no impact when I reopened a script through Unity. I didn't have any checkboxes selected under "Generate. I already had Visual Studio Code selected as script editor.