• VSCode运行html


    1、将项目文件夹添加到工作区

     2、点击“终端”,选择“配置任务”

     3、选择“使用模板创建tasks.json文件”

     4、选择“Others”

     5、tasks.json新建,默认如下

     6、修改tasks.json

    复制代码
    {
        // See https://go.microsoft.com/fwlink/?LinkId=733558
        // for the documentation about the tasks.json format
        "version": "2.0.0",
        "tasks": [
            {
                "label": "在Chrome中运行",
                "type": "process",  // [shell,process]
                "command": "Chrome",
                "args": ["${file}"],
                "windows": {
                    "command": "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe"
                },
                "group": "build",
                "presentation": {
                    // Reveal the output only if unrecognized errors occur.
                    "reveal": "never"  //[always,never,silent]
                },
                // Use the standard MS compiler pattern to detect errors, warnings and infos
                "problemMatcher": "$msCompile"
            }
        ]
    }
    复制代码

    7、选中需要运行的html文件,按住Ctrl+Shift+B,选择“在Chome中运行”

     

  • 相关阅读:
    HASH算法介绍
    windowsOracle19C安装
    Oracle快照控制文件理解
    Swap空间扩展
    OracleDBA职责—备份与恢复技术—RMAN4
    OI回忆录
    HEOI2020(NEW)
    HEOI2020
    省选前奇怪的心情减少了
    $Mom$
  • 原文地址:https://www.cnblogs.com/zouhong/p/12968790.html
Copyright © 2020-2023  润新知