Where is the tasks.json file in vscode?

前端 未结 4 1041
我在风中等你
我在风中等你 2020-12-14 08:27

I just start to use vscode in linux. I know that the build configuration are set in tasks.json. But where does this file locate?

I tried <

4条回答
  •  醉梦人生
    2020-12-14 09:04

    You have to create it manually. Current version of VS Code only creates launch.json automatically. The auto detect claims made in docs also don't work (for me at least).

    Here is a sample file you can create in .vscode/tasks.json that defines gulpjs tasks:

    {
        "version":"0.1.0",
        "command": "./node_modules/.bin/gulp",
        "isShellCommand": true,
        "tasks":[
            {
                "taskName": "test",
                "isTestCommand": true,
                "problemMatcher": "$gulp-tsc",
                "showOutput": "always"
            }
        ]
    }
    

提交回复
热议问题