Did you know that you can select the environment you publish to in Visual Studio Code?
For example, when you AL:Publish (F5), you then see multiple choices:
To accomplish this, simply use a comma (,) in the “configurations” section in your Launch.json file:
And voila, that’s it! 🙂