go to Code Runner extensions settings
search for Executor Map and then click Edit in settings.json
depending on the programming language that you use add the following
"Clear && tput setaf 6 && stty -echo && PS1=\">>\" && cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt && echo && stty echo && echo && tput setaf 1",
Be aware to to replace g++ with clang++ in case you use clang
Тэги:
#Bash #Linux #Terminal #Code #Color #VsCode