C/C++ Auto Template

Automatically inserts a basic C/C++ template when you create/open an empty .c or .cpp file.
✨ Features
✅ Auto template for .c
✅ Auto template for .cpp
✅ Only inserts when file is empty (won't overwrite your code)
⚙️ Custom Library Selection (NEW)
You can choose which libraries to include directly from VS Code Settings.
- Open Settings (
Ctrl + ,)
- Search for:
C/C++ Auto Template
- Select libraries for:
- C Libraries
- C++ Libraries

🚀 Usage
- Create a new empty file
main.c or main.cpp
- Template will be inserted automatically
📌 Example output
main.c
#include <stdio.h>
#include <math.h>
int main() {
return 0;
}
🧠 Note: This is a personal project, fully generated with AI and refined by the author.
⭐ If this extension saves you time, please consider leaving a 5-star review. It really helps!
| |