42 Belgium Header for VSCode

April 1, 2026 · View on GitHub

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 #
#                                                                            #
# ************************************************************************** #

Features

  • 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

Install it from the VSCode Marketplace

OR

Launch Quick Open with +P and enter

ext install 42belgiumheader

Usage

Insert a header

  • macOS : + + H
  • Linux / Windows : Ctrl + Alt + H.

Header is automatically updated on save.

Auto-insert

To automatically insert a header when a new empty supported file is created, enable it in User Settings:

{
  "42header.autoInsert": true
}

Status bar

When a supported file is open, the current header author is shown in the status bar. Clicking it inserts or updates the header.

Auto-rename

When a supported file is renamed, the filename field in the header is automatically updated.

Configuration

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
}

Build from Source

# Install dependencies
npm install

# Compile TypeScript
npm run compile

# Package the extension
vsce package

# Install in VSCode
code --install-extension 42belgiumheader-X.X.X.vsix

Issues

In case of a bug or missing feature, please open a GitHub Issue or submit a Pull Request.

Credits

  • 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 BE identifier for this project.

Disclaimer

This extension is a personal project and is not officially affiliated with 42 Belgium.

License

MIT