1. Click Settings
Click CodeRunner pinion, click configure extension settings
2. Click map
Click executor map in Edit in settings.json
3. Paste the code
Paste the code below, press the save command + s
{
"code-runner.runInTerminal": true,
"C_Cpp.default.cppStandard": "c++11",
"code-runner.executorMap": {
"cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt -std=c++11 && $dir$fileNameWithoutExt"
},
"files.associations": {
"typeinfo": "cpp"
},
"window.zoomLevel": 1,
}