修改配置文件settings.json
"code-runner.executorMap": {
"c": "cd $dir && gcc $fileName -o $fileNameWithoutExt -finput-charset=UTF-8 -fexec-charset=GBK && start cmd \"/k ; $fileNameWithoutExt\"",
}
相关资料:
https://cloud.tencent.com/developer/ask/sof/108713462
标签:code,runner,charset,终端,&&,fileNameWithoutExt From: https://www.cnblogs.com/yuyanc/p/17664487.html