美文网首页
typescript配置visual studio code 调

typescript配置visual studio code 调

作者: Xiaoleifeng | 来源:发表于2022-10-10 09:24 被阅读0次

1)  npm install -g typescript

2)  npm install -g ts-node

lauch.json里这么配置

{

    // 使用 IntelliSense 了解相关属性。

    // 悬停以查看现有属性的描述。

    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387

    "version": "0.2.0",

    "configurations": [

        {

            "command": "ts-node ${file}",

          "name": "Launch Program",

          "request": "launch",

          "type": "node-terminal"

        }

    ]

}

相关文章

网友评论

      本文标题:typescript配置visual studio code 调

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