// Open Unity Then go to Preferences -> External Tools -> External Script Editor And then you choose Visual Studio code