【问题标题】:How to find 'task runner templates' in Visual Studio Code?如何在 Visual Studio Code 中找到“任务运行器模板”?
【发布时间】:2017-06-21 05:13:10
【问题描述】:

抱歉,如果我遗漏了显而易见的内容,但在 Visual Studio Code 任务的帮助页面中:https://code.visualstudio.com/docs/editor/tasks 文字说:

选择任务:配置任务运行程序命令,您将看到任务运行程序模板列表。选择“其他”以创建运行外部命令的任务。

我没有看到“其他”,我只是在 tasks.json 中看到以下内容:

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "0.1.0",
    "command": "c:/Windows/sysnative/bash.exe",
    "isShellCommand": true,
    "args": ["-c 'cd /mnt/c/SVNProj/Leda/trunk/software/Source/LedaAP_win_linux; make'"],
    "showOutput": "always"
}

如何查看任务模板?

【问题讨论】:

    标签: visual-studio-code


    【解决方案1】:

    我认为这是 vscode 的不良行为,但如果有 NO tasks.json 文件,我只能在单击“配置任务运行器”后获得显示的选项。因此,如果您已经有一个 tasks.json 文件,请重命名它并重试。然后会出现模板。

    【讨论】:

      猜你喜欢
      • 2018-09-10
      • 1970-01-01
      • 2023-03-10
      • 1970-01-01
      • 2019-01-07
      • 1970-01-01
      • 1970-01-01
      • 2019-09-10
      • 1970-01-01
      相关资源
      最近更新 更多