Code-runner configuration for running multiple cpp classes in vscode

I change that line to

"code-runner.executorMap": {
    "cpp": "cd $dir && g++ -std=c++14 *.cpp  -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
},

Now it works like a charm.

Leave a Comment