美文网首页web前端
如何在 vs code 中调试html页面?

如何在 vs code 中调试html页面?

作者: jed_shi | 来源:发表于2016-11-22 11:25 被阅读0次

    前端神器 vs code 从发布到现在已经有一段时间了,有些小伙伴在使用时候会发现,它居然不能直接调用浏览器来调试你的html,下面就是这个的解决办法,亲测有效~

    ctrl+shift+p 搜索 Configure Task Runner. 回车打开tasks.json,(如果找不到,选最后一个others,)然后把里面的相关配置项改一下改成这样:

    {

    "version": "0.1.0",

    "command": "explorer",

    "isShellCommand": true,

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

    "showOutput": "always",

    "windows": {

    "command": "explorer.exe"

    }

    }

    保存之后,回到原来的页面 然后 ctrl+shift+b 就能在浏览器中进行调试啦~

    相关文章

      网友评论

        本文标题:如何在 vs code 中调试html页面?

        本文链接:https://www.haomeiwen.com/subject/lkpppttx.html