diff --git a/.vscode/settings.json b/.vscode/settings.json index cd503cd..2555b0e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,5 +2,9 @@ "files.associations": { "stdlib.h": "c", "string.h": "c" + }, + "code-runner.executorMap": { + "c": "cd $dir && gcc -fexec-charset=GBK $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", + "cpp": "cd $dir && g++ -fexec-charset=GBK $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", } } \ No newline at end of file