I'm using the Code Runner extension in vs code,
I want to change the output directory of compiled-cpp (.exe) files but I don't know what variable-name I will type in
- my "settings.json" file :
"code-runner.executorMap": {
"javascript": "node",
"java": "cd $dir && javac $fileName && java $fileNameWithoutExt",
"c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", // <- this
Is anyone know where the variable-name documentation for this case ? anyway sorry for my bad english
I've tried to implement from https://code.visualstudio.com/docs/editor/variables-reference like this :
"cpp": "cd $dir && g++ $file -o $workspaceFolder\\C++\\bin\\$fileNameWithoutExt && $workspaceFolder\\C++\\bin\\$fileNameWithoutExt",
and I got : Unexpected token '\C++\bin\stringComparison' in expression or statement