This extension provides integration of the 42 (Belgium) header in VS Code.
# ************************************************************************** #
# #
# ::: :::::::: #
# vscode-42header :+: :+: :+: #
# +:+ +:+ +:+ #
# By: kube <hello@kube.io> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2013/11/18 13:37:42 by kube #+# #+# #
# Updated: 2026/03/13 10:23:51 by nicopasla ### #######belgium.be #
# #
# ************************************************************************** #- Insert 42 header (Belgium variant) into supported files
- Automatic header update on save
- Auto-rename header filename when the file is renamed
- Optional auto-insert of the header when creating a new file
- Status bar integration showing the current header author
- Insert or update the header directly from the status bar
Install it from the VSCode Marketplace
OR
Launch Quick Open with ⌘+P and enter
ext install 42belgiumheader
- macOS : ⌘ + ⌥ + H
- Linux / Windows : Ctrl + Alt + H.
Header is automatically updated on save.
To automatically insert a header when a new empty supported file is created, enable it in User Settings:
{
"42header.autoInsert": true
}When a supported file is open, the current header author is shown in the status bar. Clicking it inserts or updates the header.
When a supported file is renamed, the filename field in the header is automatically updated.
Default values for username and email are imported from environment variables.
To override these values, specify these properties in User Settings :
{
"42header.username": string,
"42header.email": string
}# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Package the extension
vsce package
# Install in VSCode
code --install-extension 42belgiumheader-X.X.X.vsixIn case of a bug or missing feature, please open a GitHub Issue or submit a Pull Request.
-
Originally created by kube, adapted for use by 42 Belgium students by nicopasla.
-
The extension logo is based on the 42 Logo SVG (public domain) and has been modified to include the
BEidentifier for this project.
This extension is a personal project and is not officially affiliated with 42 Belgium.
MIT