Launch.json vs Tasks.json
1. tasks.json File
tasks.json FileExample tasks.json:
tasks.json:jsonCopy code{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "/usr/bin/g++",
"args": [
"-std=c++17",
"-o",
"outputFile",
"main.cpp"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}2. launch.json File
launch.json FileExample launch.json:
launch.json:Key Differences:
Are Both Necessary?
Last updated