LoginSignup
5
1

More than 5 years have passed since last update.

VS Code でタスク実行(ver. 1.17.0対応)

Posted at

VS Code でタスク実行

こちらを参考にpython実行タスクを組んでました。

VS Codeのアップデートのせいか、タスクが ctrl + shift + B で実行できなくなっていました。

そこで、tasks.jsonを以下のように編集しました。

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "taskName": "python",
            "type": "process",
            "command": "python3",
            "args": [
                "${file}"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "presentation": {
                "reveal": "always",
                "panel": "new"
            }
        }
    ]
}

group.isDefaulttrueにするとキーバインドが効くようです。

5
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
1