AkerIII
插件有一个设置:CreateBatchFile,开启它,编译一次,之后会在项目根目录下生成一个 bat 脚本:build.bat
然后在 task.json 中新建一个task
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "build",
"command": "./build.bat"
}
]
}
这样你在 preLaunchTask 中就可以调用了
"preLaunchTask": "build"