Visual studio code not showing up under external tools

I’m using a fresh install of Unity 2022.3.33f1 and after following the instructions for adding unity support to vs code (using microsoft’s own supported extension, Visual Studio Code and Unity) there’s no option to select visual studio code as the external script editor. My only options are open by extension and browse.

I’ve tried every combination of visual studio packages: vscode 1.25 and vs editor 2.0.22 and the list of script editors never changes.

this is in a project created in 2021.3, which worked great using the vscode package and vscode microsoft extension, but I had to start over from scratch when my HD died, and I’m not sure if I missed a step or if the vscode support is broken again since version 2022?

and yes, while “open by extension” works in the sense that I can use vs code to edit my scripts all the intellisense is missing.

1 Like

I figured it out - I had installed vs code in a nonstandard location, not realizing that the unity extension just uses hard coded paths rather than environment variables or path to find the VS code install - which I think counts as a bug. For future reference, you can add your own hard coded location on line 151 of VisualStudioCodeInstallation.cs of the visualstudio unity package, eg:

		foreach (var basePath in new[] {localAppPath, programFiles, "c:/apps/"})

and yes, the visual studio package does complete double duty here, completely subsuming anything that used to be the job of the visual studio code package. Really, they need to update the package descriptions to reflect this!!!