A simple extension that helps you build C projects in VS Code. It creates a Makefile for you, figures out which .c files are needed by scanning your #include headers, and compiles everything with a single command.
Features
Feature
What it does
Makefile generation
Creates a clean Makefile with one click.
Include tracking
Follows #include "file.h" and adds the matching .c files to the build.
Ignores system headers
Skips standard includes like <stdio.h>, only tracks local ones.
Custom settings
Set your own compiler, flags, and libraries in VS Code settings.
Safe file handling
Asks before overwriting an existing Makefile.
Includes clean target
Use make clean to remove object files and the binary.
How to Use
Open a .c file in your editor.
Press F1, Ctrl+Shift+P, or type > to open the command palette.
Type and run Compile C Code.
It will generate a Makefile (if one doesn’t exist), scan for dependencies, and compile the project.
Customizing the Build
You can change the compiler or flags in the extension settings.