This post is about launching different browsers from VSCode, while debugging ASP.NET Core. By default when debugging an ASP.NET Core, VS Code will launch default browser. There is way to choose the browser you would like to use. Here is the code snippet which will add different debug configuration to VS Code.
To use this, first you need to open launch.json file. You can find the launch.json file under .vscode folder. Then you need to click on the Add Configuration button. And you need to select .NET : Launch a local .NET Core Web App. And for the program key, you need to set the target-framework and project-name.dll. For this post and for .net core, you need to set the target framework is netcoreapp2.0 and assembly name will be your project name. Next you need to modify launchBrowser key, under windows, provide path of the browser you would like to use like this.
This is for chrome browser, once it is done, you can repeat the steps for Firefox and/or IE or any other browser you would like to debug. Once it is done, you will be able to select the debug configuration from VSCode, like this.