Windows has always been a pain to me since I have a potato PC and I can't run visual studio. In your case, you either Use a fully blown ready to use (bloated) IDE, like Visual Studio, CodeBlocks and CLion (Not suitable for potato PCs/Laptops). Spend some time to configure/customize your code editor, E.G. vscode or vim (or neovim). In my experience, no matter which editor you use, having a C++ installation of visual studio saves some time of configuring the PATH and toolchain directory and stuff (especially if you're a beginner). Answer from wwg_6 on reddit.com
๐ŸŒ
PW Skills
pwskills.com โ€บ blog โ€บ cpp โ€บ can i use c programming in vs code? explained in detail!
Can I Use C Programming In VS Code? Explained In Detail!
November 4, 2025 - In this blog, weโ€™ll talk about the compatibility of C programming with VS Code, the role of C++ compilers, and provide step-by-step instructions on running C programs in VS Code on various operating systems.
๐ŸŒ
Visual Studio Code
code.visualstudio.com โ€บ docs โ€บ languages โ€บ cpp
C/C++ for Visual Studio Code
November 3, 2021 - C/C++ support for Visual Studio Code is provided by a Microsoft C/C++ extension to enable cross-platform C and C++ development on Windows, Linux, and macOS.
Discussions

What tools do you use with Visual studio code to run C code ?
Windows has always been a pain to me since I have a potato PC and I can't run visual studio. In your case, you either Use a fully blown ready to use (bloated) IDE, like Visual Studio, CodeBlocks and CLion (Not suitable for potato PCs/Laptops). Spend some time to configure/customize your code editor, E.G. vscode or vim (or neovim). In my experience, no matter which editor you use, having a C++ installation of visual studio saves some time of configuring the PATH and toolchain directory and stuff (especially if you're a beginner). More on reddit.com
๐ŸŒ r/C_Programming
55
15
July 29, 2022
Do people use vscode for c++ or c development?
I used to use it. I still on occasion do. I never used Visual Studio, but vscode is feature rich, great plugin ecosystem and a great editor. I mostly write c++. More on reddit.com
๐ŸŒ r/vscode
59
28
July 20, 2023
How to Run C in VS Code - Stack Overflow
If you don't have a compiler, the MSys2 environment that provides the gcc/MinGW compilers is very good. Works well with VSCode and provides an excellent Linux development environment from its very good terminal. More on stackoverflow.com
๐ŸŒ stackoverflow.com
How to Setup VSCode for C/C++ Programming (From a Microsoft Software Engineer)
My only suggestion is to use a newer distribution of MinGW, because GCC 6 is really ancient at this point. For example, you could use winlibs (used by chocolatey and it's the MinGW you get on the GitHub runners). More on reddit.com
๐ŸŒ r/cpp
93
184
May 28, 2023
People also ask

Can Visual Studio Code Be Used for Embedded C Programming?
Yes, Visual Studio Code is suitable for embedded C programming. Its lightweight nature and extensibility make it favoured by many developers. Extensions tailored for embedded development can be added to enhance the experience.
๐ŸŒ
pwskills.com
pwskills.com โ€บ blog โ€บ cpp โ€บ can i use c programming in vs code? explained in detail!
Can I Use C Programming In VS Code? Explained In Detail!
Can Visual Studio Code Be Used for Team C++ Development?
Yes, Visual Studio Code supports collaborative development via extensions and Git integrations. Features like Live Share facilitate real-time collaboration, making it suitable for team-based C++ projects.
๐ŸŒ
pwskills.com
pwskills.com โ€บ blog โ€บ cpp โ€บ can i use c programming in vs code? explained in detail!
Can I Use C Programming In VS Code? Explained In Detail!
What Debugging Features Does Visual Studio Code Offer for C Programming?
Visual Studio Code offers robust debugging for C programming, including breakpoints and variable inspection. Extensions like "C/C++ Debugger" enhance debugging functionalities for comprehensive issue identification and resolution.
๐ŸŒ
pwskills.com
pwskills.com โ€บ blog โ€บ cpp โ€บ can i use c programming in vs code? explained in detail!
Can I Use C Programming In VS Code? Explained In Detail!
๐ŸŒ
Visual Studio Marketplace
marketplace.visualstudio.com โ€บ items
C/C++ - Visual Studio Marketplace
Visual Studio Code>Programming Languages>C/C++New to Visual Studio Code?
๐ŸŒ
Microsoft
visualstudio.microsoft.com
Visual Studio: IDE and Code Editor for Software Development
Visual Studio dev tools & services make app development easy for any developer, on any platform & language. Develop with our code editor or IDE anywhere for free.
๐ŸŒ
Visual Studio Code
code.visualstudio.com โ€บ docs โ€บ cpp โ€บ config-msvc
Configure VS Code for Microsoft C++
November 3, 2021 - VS Code is now configured to use the Microsoft C++ compiler. The configuration applies to the current workspace. To reuse the configuration, just copy the JSON files to a .vscode folder in a new project folder (workspace) and change the names of the source file(s) and executable as needed.
๐ŸŒ
GitHub
github.com โ€บ microsoft โ€บ vscode-cpptools
GitHub - microsoft/vscode-cpptools: Official repository for the Microsoft C/C++ extension for VS Code. ยท GitHub
Official repository for the Microsoft C/C++ extension for VS Code. - microsoft/vscode-cpptools
Starred by 6.1K users
Forked by 1.7K users
Languages ย  TypeScript 91.0% | C++ 5.2% | HTML 1.9% | JavaScript 1.9%
Find elsewhere
๐ŸŒ
Visual Studio Code
code.visualstudio.com โ€บ docs โ€บ cpp โ€บ config-mingw
Using GCC with MinGW
November 3, 2021 - This opens the C/C++ Configurations page. When you make changes here, VS Code writes them to a file called c_cpp_properties.json in the .vscode folder.
๐ŸŒ
Visual Studio Marketplace
marketplace.visualstudio.com โ€บ items
C/C++ Extension Pack - Visual Studio Marketplace
Extension for Visual Studio Code - Popular extensions for C++ development in Visual Studio Code.
๐ŸŒ
Visual Studio Code
code.visualstudio.com โ€บ docs โ€บ cpp โ€บ config-linux
Using C++ on Linux in VS Code
November 3, 2021 - VS Code is now configured to use gcc on Linux. The configuration applies to the current workspace. To reuse the configuration, just copy the JSON files to a .vscode folder in a new project folder (workspace) and change the names of the source file(s) and executable as needed.
๐ŸŒ
Readthedocs
vscode-docs-arc.readthedocs.io โ€บ en โ€บ latest โ€บ languages โ€บ cpp
C/C++ for Visual Studio Code (Preview) - vscode-docs-arc
C/C++ support for Visual Studio Code is provided by a Microsoft C/C++ extension to enable cross-platform C and C++ development on Windows, Linux, and macOS.
๐ŸŒ
SourceForge
sourceforge.net โ€บ projects โ€บ c-c-for-visual-studio-c.mirror
C/C++ for Visual Studio Code download | SourceForge.net
February 9, 2026 - Repository for the Microsoft C/C++ extension for VS Code. The C/C++ extension adds language support for C/C++ to Visual Studio Code, including features such as IntelliSense and debugging.
๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ 79048119 โ€บ how-to-run-c-in-vs-code
How to Run C in VS Code - Stack Overflow
1. Verify that the code is being compiled, and an executable is being created. A simple GCC command like gcc main.c -o main.exe will work. 2. Make sure the executable main.exe is mentioned in your launch.json file in the .vscode folder of your project.
๐ŸŒ
freeCodeCamp
freecodecamp.org โ€บ news โ€บ how-to-write-and-run-c-cpp-code-on-visual-studio-code
How to Write And Run C and C++ Code in Visual Studio Code
January 20, 2023 - For running C or C++ code, you just need to have a valid C/C++ compiler installed on your computer. If you are using a Linux operating system, then there is a high chance that it is already installed on your system.
๐ŸŒ
Medium
ludwiguer.medium.com โ€บ configure-visual-studio-code-to-compile-and-run-c-c-3cef24b4f690
Configure Visual Studio Code to compile and run C/C++ | by Luis Guerrero | Medium
April 6, 2020 - Configure Visual Studio Code to compile and run C/C++ Some time ago a friend of mine asked me to recommend her an IDE to compile and run C and C++ code because she was tired of using XCode, and I โ€ฆ
๐ŸŒ
Microsoft Learn
learn.microsoft.com โ€บ en-us โ€บ shows โ€บ visual-studio-toolbox โ€บ c-programming-with-visual-studio-code
C++ Programming with Visual Studio Code | Microsoft Learn
January 4, 2018 - The focus of the extension is code editing, navigation, and debugging support. Rong shows IntelliSense, formatting and navigating code, Peek and Go to definition and then building and debugging.