What tools do you use with Visual studio code to run C code ?
Do people use vscode for c++ or c development?
How to Run C in VS Code - Stack Overflow
How to Setup VSCode for C/C++ Programming (From a Microsoft Software Engineer)
Can Visual Studio Code Be Used for Embedded C Programming?
Can Visual Studio Code Be Used for Team C++ Development?
What Debugging Features Does Visual Studio Code Offer for C Programming?
Videos
I followed what is said on this blog post, it takes so much time to run(or build) and sometimes just doesn't.
i've been using CodeBlocks before but didn't get comfortable with it i just don't like, it would be great if i can use VSC.
Edit: i use Windows.
Is it a common choice? The point of this post is mostly to ask you guys whether it would hinder my productivity in any way, i've exclusively used visual studio for years, but now that my laptops getting a bit older visual studio seems to give it a really hard time.
Hey guys! My name is Tarik Brown and I am a software engineer at Microsoft who works on the C/C++ Extension for VS Code. Iโve decided to start a tutorial series starting with how to setup VS Code for C/C++ Development. Check out the video here: https://youtu.be/bCK36Tesrvc
This has become much easier now. Search for cppstandard in your vs code extension settings and choose the version of C++ you want the extension to use from the drop down.

In order to make sure your debugger is using the same version, make sure you have something like this for your tasks.json, where the important lines are the --std and the line after that defines the version.
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: g++ build active file",
"command": "/usr/bin/g++",
"args": [
"-std=c++17",
"-I",
"${fileDirname}",
"-g",
"${fileDirname}/*.cpp",
"-o",
"${workspaceFolder}/out/${fileBasenameNoExtension}.o"
],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": ["$gcc"],
"group": {
"kind": "build",
"isDefault": true
}
}
],
"version": "2.0.0"
}
Note that if you're copying the above tasks.json directly, you'll need to have a folder named out in your workspace root.
There's a posting in their GitHub issue tracker about this: std::string_view intellisense missing (CMake, VC++ 2017).
In another issue, it is said that the extension defaults to C++17, but does not yet support all of C++17 features: Setting C++ standard.
This is confirmed by c_cpp_properties.json Reference Guide, where an option is listed cppStandard which defaults to C++17. (To edit this file, press Ctrl + Shift + P and type in C/CPP: Edit Configurations).
It appears, then, they just don't have full support yet.