vscode-code-runner
vscode-code-runner copied to clipboard
Modified the Executor Map Input for C and C++
Modified the Executor Map Input for C and C++ , so that the .exe file created during the process gets destroyed immediately after the program is run.
It would be better,
"code-runner.executorMap": { "c": "cd $dir & gcc -std=c17 \"$fileName\" -o \"$fileNameWithoutExt\" & ./\"$dir$fileNameWithoutExt.exe\" & del \"$dir$fileNameWithoutExt.exe\"", "cpp": "cd $dir & g++ -std=c++17 \"$fileName\" -o \"$fileNameWithoutExta.exe\" & ./\"$dir$fileNameWithoutExt.exe\" & del \"$dir$fileNameWithoutExt.exe\"", },
There is problem with && operator in windows powershell, so it woould be better to have & or | operator. Also this is more flexible with the version specifier for c & c++ & filename with spaces.
Ok Agreed with that