Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>42 Header (Python + C)New to Visual Studio Code? Get it now.
42 Header (Python + C)

42 Header (Python + C)

nopons

|
94 installs
| (0) | Free
Updated 42-style file header for VSCode with Python flake8 norm support
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

42Next Header (Python + C)

Visual Studio Marketplace Version License: MIT

Updated 42-style banner extension for VSCode with Python flake8 norm support (79 characters).

Based on the original 42header by kube, this version adds Python compatibility and modern tooling while delivering a new header look.


Installation

  1. Open VSCode
  2. Press Ctrl+P (or Cmd+P on Mac)
  3. Type: ext install nopons.42next-header
  4. Press Enter

Or search "42Next Header" in the Extensions view (Ctrl+Shift+X).


⚙️ Configuration ⚙️

Set your 42 username and email in VSCode settings:

Option 1: Via Settings UI

  1. Press Ctrl+, (or Cmd+, on Mac)
  2. Search for "42header"
  3. Fill in:
    • Username: Your 42 login
    • Email: Your 42 email

Option 2: Via settings.json

Press Ctrl+Shift+P → "Preferences: Open User Settings (JSON)"

{
  "42header.username": "your-login",
  "42header.email": "your-login@student.42.fr"
}

Usage

Insert Header

Keyboard Shortcuts:

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

Command Palette:

  1. Press Ctrl+Shift+P (or Cmd+Shift+P on Mac)
  2. Type "Insert 42 header"
  3. Press Enter

Auto-Update

The header automatically updates the "Updated" timestamp and author when you save the file.


Header Examples

C/C++ (80 characters)

/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   main.c                                             :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: your-login <your-login@student.42.fr>      +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2026/01/27 10:00:00 by your-login       #+#    #+#              */
/*   Updated: 2026/01/27 12:00:00 by your-login      ###   ########.fr        */
/*                                                                            */
/* ************************************************************************** */

Python (79 characters - flake8)

#!/usr/bin/env python3

# ########################################################################### #
# #                                                                           #
# #                                                       :::      ::::::::   #
# #   script.py                                          :+:      :+:    :+:  #
# #                                                   +:+ +:+         +:+     #
# #   By: your-login <your-login@student.42.fr>      +#+  +:+       +#+       #
# #                                               +#+#+#+#+#+   +#+           #
# #   Created: 2026/01/27 10:00:00 by your-login       #+#    #+#             #
# #   Updated: 2026/01/27 12:00:00 by your-login      ###   ########.fr       #
# #                                                                           #
# ########################################################################### #

Credits

  • Original extension by kube

📦 Packaging

To build the VSIX package locally:

# Install vsce (if not already installed)
npm install -g @vscode/vsce

# Build the package
vsce package

To install the generated .vsix file:

code --install-extension 42next-header-x.x.x.vsix

Support

  • Issues: GitHub Issues

📄 License

MIT License - see LICENSE for details.


  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft