Wednesday, May 16, 2018

Visual Studio Code Setup for Simple Build In Local Directory No Frills

Assuming :

You're okay with a.out, then :

{
    "tasks": [
        {
            "type""shell",
            "label""C/C++: g++ build active file",
            "command""/usr/bin/g++",
            "args": [
                "-g",
                "${file}",
            ],
            "options": {
                "cwd""${fileDirname}"
            },
            "problemMatcher": [
                "$gcc"
            ],
            "group": {
                "kind""build",
                "isDefault"true
            },
            "detail""Generated task by Debugger"
        }
    ],
    "version""2.0.0"
}

No comments: