visual studio code 中隐藏从 ts 文件生成的 js 文件和 map 文件

来源:互联网 发布:阿里妈妈淘宝客认证 编辑:程序博客网 时间:2024/05/22 22:18

typescript 文件编译产生的 js 和 map 文件不需要手工编辑,打开【文件】【首选项】【工作区设置】,放入以下代码:

复制代码
// 将设置放入此文件中以覆盖默认值和用户设置。{    "files.exclude": {        // exclude .js and .js.map files, when in a TypeScript project        "node_modules": true,        "**/*.js": { "when": "$(basename).ts"},        "**/*.js.map": true    }}
复制代码

1 0
原创粉丝点击