首页 > 编程学习 > tasks.json

tasks.json

发布时间:2022/9/14 18:42:55

你猜猜这玩意怎么用?

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "g++",
            "type": "shell",
            "command": "clear && g++ ${file} -o cpp -O2 -DDEBUG -fsanitize=undefined,address -Wno-unused-result && ulimit -s 128000 && time ./cpp < in.in > out.out",
            "problemMatcher": {
                "owner": "cpp",
                "fileLocation": [
                    "relative",
                    "./"
                ],
                "pattern": {
                    "regexp": "^(.*):([0-9]+):([0-9]+): (.*): (.*)$",
                    "file": 1,
                    "line": 2,
                    "column": 3,
                    "severity": 4,
                    "message": 5
                }
            },
            "presentation": {
                "echo": true,
                "reveal": "never",
                "focus": true,
                "panel": "shared",
                "showReuseMessage": true,
                "clear": false
            },
            "group": {
                "kind": "build",
                "isDefault": true
            }
        },
        {
            "label": "no fsan",
            "type": "shell",
            "command": "clear && g++ ${file} -o cpp -O2 -DDEBUG -Wno-unused-result && ulimit -s 128000 && time ./cpp < in.in > out.out",
            "problemMatcher": {
                "owner": "cpp",
                "fileLocation": [
                    "relative",
                    "./"
                ],
                "pattern": {
                    "regexp": "^(.*):([0-9]+):([0-9]+): (.*): (.*)$",
                    "file": 1,
                    "line": 2,
                    "column": 3,
                    "severity": 4,
                    "message": 5
                }
            },
            "presentation": {
                "echo": true,
                "reveal": "never",
                "focus": true,
                "panel": "shared",
                "showReuseMessage": true,
                "clear": false
            }
        },
        {
            "label": "py",
            "type": "shell",
            "command": "clear && time python3 ${file} < in.in > out.out",
            "problemMatcher": {
                "owner": "cpp",
                "fileLocation": [
                    "relative",
                    "./"
                ],
                "pattern": {
                    "regexp": "^(.*):([0-9]+):([0-9]+): (.*): (.*)$",
                    "file": 1,
                    "line": 2,
                    "column": 3,
                    "severity": 4,
                    "message": 5
                }
            },
            "presentation": {
                "echo": true,
                "reveal": "never",
                "focus": true,
                "panel": "shared",
                "showReuseMessage": true,
                "clear": false
            },
            "group": "build"
        }
    ]
}
Copyright © 2010-2022 mfbz.cn 版权所有 |关于我们| 联系方式|豫ICP备15888888号