VsCode的CodeRunner生成重定向
2020-09-07 本文已影响0人
李伟13
新建一个settings.json,输入如下就可以了.目录需要该一下

C++如下
"code-runner.executorMap": {
"cpp": "cd $dir && g++ -std=c++11 $fileName -D LOCAL -o C:/Cpp/exe/$fileNameWithoutExt.exe && C:/Cpp/exe/$fileNameWithoutExt.exe"
},