$begingroup$

I did not use VSCode since two weeks in the past. Right now, I opened my Unity Undertaking. VSCode up to date some extensions and unhappily, Intellisense would not work anymore. I did not change VSCode settings — all configuration is similar as earlier than. I do not know tips on how to repair it. I observed that the C# icon has modified too. An extension known as Unity has been put in too.

Screenshot of VSCode extensions tab

I am utilizing VSCode 1.81 and Unity 2022.3

$endgroup$

0

$begingroup$

I lately up to date my VSCode extensions too. This is what I did to in the end get intellisense working once more – observe that I have never examined exhaustively to see if all steps are required or if some had nothing to do with fixing the issue.

  1. Take away previous VSCode C# extensions. I learn that the previous Omnisharp-based C# help is incompatible with the brand new C# Dev Package variations based mostly on Roslyn. I saved the next put in (all with the Microsoft developer checkmark):

    • C# – Base language help for C# (ms-dotnettools.csharp)

    • C# Dev Package – Official C# extension from Microsoft (ms-dotnettools.csdevkit)

    • Unity – Integrates Visible Studio Code with Unity (visualstudiotoolsforunity.vstuc)

    I then closed VS Code for the subsequent steps.

  2. In Unity bundle supervisor, guarantee Visible Studio Editor bundle is put in and up to date to the newest model (2.0.20 on the time of writing).

    Sure, that is the Visible Studio (not Code) bundle – based on the Unity VSCode extension docs, the brand new extension depends on this bundle, and the previous “Visible Studio Code Editor” bundle is not maintained.

  3. In Unity File -> Preferences -> Exterior Instruments, set Exterior Script Editor to Visible Studio Code (model 1.81.0 on the time of writing). Observe the “Visible Studio Editor v2.0.20 enabled” textual content under the drop-down.

    Unity preferences screensot

  4. Click on the “Regenerate challenge information” button slightly below that part within the preferences dialog.

  5. Re-launch VSCode by double-clicking on a C# script within the Unity Undertaking tab.

    Test the VSCode terminal pane – it does some initialization steps, together with downloading the .NET runtime in case your model would not match, and that may take a while. So your intellisense may not kick in till you see the affirmation that the initiatives have loaded efficiently:

Project system initialization finished. 2 project(s) are loaded, and 0 failed to load.

$endgroup$


You need to log in to reply this query.