Reputation: 11
I'm having a problem where I switched to VS Code cause it's lighter, but my Unity C# scripts won't open automatically with VS Code.
I've made sure to change the external text editor to VS Code in Unity and even installed both Visual Studio Code editor and Visual Studio editor, but nothing changed.
And I've made sure to install the necessary extensions in VS Code, but when I click a script in Unity, it doesn't open up in VS Code. I've gone to VS Code and confirmed that the script is editable within it too... Please does anyone have an idea why it won't open automatically?
Upvotes: 1
Views: 52
Reputation: 564
Here is how:
Unity Registry
Visual Studio Editor
.Ensure you choose the latest version, & don't select Visual Studio Code Editor
since it's old.
External tools
and in External Script Editor
: Select Visual Studio Code
If you don't find it press on brows and brows for Visual Studio wherever you installed it, if it's in the default place then it will be in: C:\Users\{Username}\AppData\Local\Programs\Microsoft VS Code
Regenerate project files
Now you should open your C# projects in VS Code.
I hope that helps.
Upvotes: 1