How to Setup VS Code For C++ 14 /C ++17

I added code runner and added this in settings.json Seems to work for me 😀

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

Leave a Comment