vscode提示找不到chrome浏览器的解决方法


当前第2页 返回上一页

a0ec67eb4f723e3d01a9996b89a70c7.png

1

2

3

4

5

6

7

8

9

10

11

12

{

    // See https://go.microsoft.com/fwlink/?LinkId=733558

    // for the documentation about the tasks.json format

    "version": "2.0.0",

    "tasks": [

        {

            "label": "echo",

            "type": "shell",

            "command": "echo Hello"

        }

    ]

}

我们需要对这个代码进行修改,如下:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

{

    // See https://go.microsoft.com/fwlink/?LinkId=733558

    // for the documentation about the tasks.json format

    "version": "2.0.0",

    "tasks": [

        {

            "label": "Run HTML file with Chrome",

            "type": "process",

            "command": "chrome",

            "args": ["${file}"],

            "windows": {

                //这里写你电脑的Chrome浏览器的安装位置

                "command": "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe"

            },

            "group": {

                "kind": "build",

                "isDefault": true

            }

        }

    ]

}

保存后打开文件,按下Ctrl+Shift+B就能打开浏览器了。

相关文章教程推荐:vscode教程

以上就是vscode提示找不到chrome浏览器的解决方法的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

vsCode中ctrl+鼠标左键函数不跳转

vsCode如何调用浏览器

详解vsCode利用git来可视化管理源代码的方法

vsCode svn怎么使用

vsCode终端窗口无法输入命令

vsCode不能编辑文件怎么办

vsCode终端无法输入怎么办

vsCode安装插件扩展出错

使用vsCode快速创建vue文件模版的方法介绍

推荐一些vsCode的好用插件

更多相关阅读请进入《vsCode》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...