VSCode添加tasks.json

  • 配置任务

在菜单选择【终端】-【配置任务】

选择【使用模板创建 tasks.json 文件】

选择【Other】

tasks.json文件生成完毕

  • 配置默认生成任务

生成tasks.json文件:

{
	"version": "2.0.0",
	"tasks": [
		{
			"type": "typescript",
			"tsconfig": "tsconfig.json",
			"option": "watch",
			"problemMatcher": [
				"$tsc-watch"
			],
			"group": {
				"kind": "build",
				"isDefault": true
			},
			"label": "tsc: 监视 - tsconfig.json"
		}
	]
}

猜你喜欢

转载自blog.csdn.net/watson2017/article/details/109779609
今日推荐