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.
- From the Tasks menu, Select 'Configure Tasks'
- The entry field prompts you for 'Select a task to configure'
- Choose 'Create tasks.json file from template'
- 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}"]
}