zoukankan      html  css  js  c++  java
  • VS code 设置使用快捷键打开浏览器运行当前代码

    当前版本信息:

    版本 1.20.0
    提交 c63189deaa8e620f650cc28792b8f5f3363f2c5b
    日期 2018-02-07T17:09:39.780Z
    Shell 1.7.9
    渲染器 58.0.3029.110
    Node 7.9.0
    架构 x64

    之前一直用的Atom,最近转入了vs code,真命令式代码控制啊。。。

    1. ctrl+P ,输入.vscode
      这里写图片描述
      打开tasks.json

    2.将代码修改成如下,路径改成自己的(注脚本名子当前版本是label,以前的name废弃了)

    {
        // 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",  // [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"
            }
        ]
    }
    

    3.在html文件下Ctrl+Shift+B执行,
    这里写图片描述

  • 相关阅读:
    Gym 101606 F-Flipping Coins(概率dp)
    Gym101350 J Lazy Physics Cat
    Gym 101350G
    hdu6188 Duizi and Shunzi (贪心或者dp)
    Gym101350 FMonkeying Around
    codeforce 457DIV2 C题
    codeforce 457DIV2 B题
    codeforce 461DIV2 F题
    codeforce 461DIV2 E题
    PE文件RV转FOA及FOA转RVA
  • 原文地址:https://www.cnblogs.com/zhangmingzhao/p/8450205.html
Copyright © 2011-2022 走看看