VS Code 入门

将VSCode设置成中文语言环境

快捷键【Ctrl+Shift+P】—输入【Configure Display Language】—将“en”改为“zh-CN”—打开extention输入【Chinese (Simplified)Language Pack for Visual Studio Code】—点击【Install】—安装完成以后点击【Restart】—重启后看到中文界面。

 

用VSCode运行HTML代码

快捷键【Ctrl+Shift+P】—输入【Tasks: Configure Task】—选择最后一个选项【Others】—弹出默认的一些配置选项—修改此默认配置文件task.json如下:

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

—在Html文件中按快捷键【Ctrl+Shift+B】执行。

 

转载于:https://www.cnblogs.com/ratels/p/10279366.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值