C & C++ Boilerplate
A lightweight Visual Studio Code extension that automatically inserts boilerplate code whenever you create a new C (.c) or C++ (.cpp) file.
Designed and developed by Thinakaran Manokaran.
✨ Features
🔹 Auto-Insert C Boilerplate
When a new .c file is created, a predefined C boilerplate template is automatically inserted.
Example:
#include <stdio.h>
int main() {
// Your code here
return 0;
}
🔹 Auto-Insert C++ Boilerplate
When a new .cpp file is created, a predefined C++ boilerplate template is added.
Example:
#include <iostream>
using namespace std;
int main() {
// Your code here
return 0;
}
🧠 Why This Extension?
Starting a new C or C++ file usually means writing the same starting code repeatedly. This extension saves you time by:
- Auto-generating the base structure
- Reducing repetitive typing
- Keeping C/C++ project files consistent
- Improving workflow speed
🛠 Tech Used
- JavaScript (Node.js)
- VS Code Extension API
- JSON Snippets
📦 Installation
- Search for C & C++ Boilerplate in the VS Code Marketplace
- Click Install
- Create a new
.c or .cpp file to see the boilerplate inserted automatically
Or install manually:
code --install-extension c-cpp-boilerplate-1.0.0.vsix
{
"name": "c-cpp-boilerplate",
"displayName": "C & C++ Boilerplate",
"description": "Automatically inserts boilerplate code when creating new C or C++ files.",
"version": "1.0.0",
"publisher": "thinakaran",
"author": {
"name": "Thinakaran Manokaran",
"url": "https://thinakaran.dev"
}
}
🧑💻 Author
Thinakaran Manokaran
Website: https://thinakaran.dev
Publisher: thinakaran (VS Code Marketplace)
Happy Coding! 🚀