
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
- Open VSCode
- Press
Ctrl+P (or Cmd+P on Mac)
- Type:
ext install nopons.42next-header
- 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
- Press
Ctrl+, (or Cmd+, on Mac)
- Search for "42header"
- 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
Keyboard Shortcuts:
- macOS:
Cmd + Alt + H
- Linux/Windows:
Ctrl + Alt + H
Command Palette:
- Press
Ctrl+Shift+P (or Cmd+Shift+P on Mac)
- Type "Insert 42 header"
- Press Enter
Auto-Update
The header automatically updates the "Updated" timestamp and author when you save the file.
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
📄 License
MIT License - see LICENSE for details.