Skip to content

Instantly share code, notes, and snippets.

@neosarchizo
Last active September 26, 2024 05:09
Show Gist options
  • Save neosarchizo/f44baa98cc1217f1934b0233d7834b39 to your computer and use it in GitHub Desktop.
Save neosarchizo/f44baa98cc1217f1934b0233d7834b39 to your computer and use it in GitHub Desktop.
[Visual Studio Code] Code-runner:Executer map for C++
  1. Open pallete menu
  2. Preferences: Open Workspace Settings (JSON)
  3. Input settings.json content
{
"code-runner.executorMap": {
"cpp": "cd $dir && g++ -std=c++11 $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment