How do I set the default browser as chrome in Visual Studio Code?

Go to file-> preferences -> user settings -> search "By Default it will open your default favorite browser" set your browser.


The other StackOverflow questions regarding the browser, had to do with opening a specific file. Here are the steps to creating a tasks.json file in a brand new environment.

  1. From the Tasks menu, Select 'Configure Tasks'
  2. The entry field prompts you for 'Select a task to configure'
  3. Choose 'Create tasks.json file from template'
  4. Edit the file to include the following block:

{
            "version": "0.1.0",
            "command": "Chrome",
            "windows": {
                "command": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
            },
            "args": ["${file}"]
}