visual-studio-code

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


I am setting up my VS Code environment for the first time, but I can't figure out how to set Chrome as the default browser for the workspace.


Solution

  • 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}"]
    }