vscode中启动浏览器的tasks.json

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "0.1.0",
    "command": "firefox",
    "windows": {
        "command": "D:/Program Files/Mozilla Firefox/firefox.exe" //firefox浏览器的路径
    },
    "isShellCommand": true,
    "args": [
        "${file}"
    ],
    "showOutput": "always"
}

原文地址:https://www.cnblogs.com/gaocong/p/6072406.html