JaSON Lùa Gà

🧩 Syntax:
{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "type": "shell",
            "label": "C/C++: g++ build active file",
            "command": "cd",
            "args": ["\"$(wslpath", 
                     "'${fileDirname}')\"", 
                     "&&", 
                     "(", 
                     "[[", 
                     "${fileExtname}", 
                     "==", 
                     ".c", 
                     "]]", 
                     "&&", 
                     "gcc", 
                     "\"${fileBasename}\"", 
                     "-o", 
                     "\"${fileBasenameNoExtension}\"", 
                     "&&", 
                     "./\"${fileBasenameNoExtension}\"", 
                     ")", 
                     "||", 
                     "(", 
                     "[[", 
                     "${fileExtname}", 
                     "==", 
                     ".cpp", 
                     "]]", 
                     "&&", 
                     "g++", 
                     "\"${fileBasename}\"", 
                     "-o", 
                     "\"${fileBasenameNoExtension}\"", 
                     "&&", 
                     "./\"${fileBasenameNoExtension}\"", 
                     ")"],
            "problemMatcher": ["$gcc"],
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "detail": "Task generated by Debugger."
        }
    ]
}
DiamondInTheHoe

DiamondInTheHoe

Member