结合优化一、三的代码设置,最后应该为:
"code-runner.executorMap": {
""c": "chcp 65001 && cd $dir && g++ \"$fileName\" -o .\\build\\\"$fileNameWithoutExt\" && & .\\build\\\"$dir$fileNameWithoutExt\"",
"cpp": "chcp 65001 && cd $dir && g++ \"$fileName\" -o .\\build\\\"$fileNameWithoutExt\" && & .\\build\\\"$dir$fileNameWithoutExt\"",
}