I added code runner and added this in settings.json Seems to work for me 😀
"code-runner.executorMap": {
"cpp": "cd $dir && g++ -std=c++17 $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
},
More Related Contents:
- How to enable C++17 support in VSCode C++ Extension
- Visual Studio Code, #include saying “Add include path to settings”
- VS Code will not build c++ programs with multiple .ccp source files
- VSCode c++ task.json include path and libraries
- Visual Studio Code: Take Input From User
- How to use visual studio code to compile multi-cpp file?
- vscode import error for python module
- How to include compiler flags in Visual Studio Code?
- #include errors detected in vscode
- Vscode g++ it isn’t finding .cpp definition files
- Visual Studio Code formatting for “{ }”
- How to avoid errors in Vscode for putting header files in a separate directory than src
- Visual Studio Code c++11 extension warning
- How to read input when debugging in C++ in Visual Studio Code?
- Why ‘&’ reference in not required in classes in C++?
- c++ virtual inheritance
- __FILE__, __LINE__, and __FUNCTION__ usage in C++
- Why are C++ inline functions in the header?
- Qt5 Static Build yields Failed to load platform plugin “windows”
- The reason of using `std::greater` for creating min heap via `priority_queue`
- Is it possible to create a function dynamically, during runtime in C++?
- Why isn’t C/C++’s “#pragma once” an ISO standard?
- C++ static template member, one instance for each template type?
- Same random numbers every time I run the program
- Understanding rvalue references
- How do you copy/paste from the clipboard in C++?
- Why do you use typedef when declaring an enum in C++?
- allocating vectors (or vectors of vectors) dynamically
- Memory alignment : how to use alignof / alignas?
- What does _T stands for in a CString