Where is the tasks.json file in vscode?

前端 未结 4 1072
我在风中等你
我在风中等你 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:26

    DANGER! All of this has changed. Current Microsoft docs on this topic are NOT consistent. Note the version warning at the top of this:

    https://code.visualstudio.com/docs/editor/tasks

    Note the conflicts between this:

    https://docs.microsoft.com/en-us/visualstudio/ide/customize-build-and-debug-tasks-in-visual-studio?view=vs-2017

    and this:

    https://code.visualstudio.com/docs/languages/cpp

    I cannot get a straight answer on what works now (12MAR2019) to save my life, but I can tell you that none of the permutations I've tried, namely:

    {., .vs, .vscode} / { tasks.json, tasks.vs.json}

    are working for me. It really drives me crazy that they changed this crap without updating ALL of the pertinent documentation, and the backward-compatibility "support" is just making things MUCH WORSE.

提交回复
热议问题