vscode-code-runner
vscode-code-runner copied to clipboard
How do I run C code with -std=c99?
Just wondering how to do this, great extension
just make some changes in setting.json file. Change c99 to whichever versoin you want.
"code-runner.executorMap": {
"c": "cd $dir & gcc -std=c99 \"$fileName\" -o \"$fileNameWithoutExt\" & ./\"$dir$fileNameWithoutExt.exe\"",
"cpp": "cd $dir & g++ -std=c++17 \"$fileName\" -o \"$fileNameWithoutExta.exe\" & ./\"$dir$fileNameWithoutExt.exe\"",
},