task.json 파일에서 사용하는 활성 파일 빌드에 다음과 같이 args 를 추가하면 됩니다.

{
    "type": "cppbuild",
    "label": "C/C++: g++ 활성 파일 빌드",
    "command": "/usr/bin/g++",
    "args": [
        "-std=c++17",
        "-fdiagnostics-color=always",
        "-g",
        "${file}",
        "-o",
        "${fileDirname}/${fileBasenameNoExtension}"
    ],
    "options": {
        "cwd": "${fileDirname}"
    },
    "problemMatcher": [
        "$gcc"
    ],
    "group": {
        "kind": "build",
        "isDefault": true
    },
    "detail": "디버거에서 생성된 작업입니다."
},

 

 

 

ytw_developer