Drop a 42 header into any file with one shortcut. The extension keeps the classic layout, remembers the original “Created” timestamp, and updates the “Updated” line every time you save.
# ****************************************************************************** #
# #
# ::: :::::::: #
# 42-header :+: :+: :+: #
# +:+ +:+ +:+ #
# By: mtaheri <mtaheri@student.42istanbul.com.tr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2025/11/15 23:19:08 by mtaheri #+# #+# #
# Updated: 2025/11/15 23:19:08 by mtaheri ### ########.fr #
# #
# ****************************************************************************** #
Install
- Launch VS Code and open the Extensions view.
- Search for 42 Header and click Install (or run
ext install ft-header from the command palette).
- Reload VS Code if prompted.
How to Use
- Open any supported source file (C, C++, JavaScript, Python, etc.).
- Press
⌘⌥H (macOS) or Ctrl+Alt+H (Windows/Linux), or run Insert 42 Header from the Command Palette.
- The header is inserted at the top of the file. Re-running the command refreshes only the “Updated” timestamp.
- Saving a file that already contains the header automatically updates the
Updated line.
- Use the status bar toggle labeled 42 Auto Header to enable automatic insertion whenever you create a new file.
Open Settings → Extensions → 42 Header (or search for 42 Header in the Settings UI) and adjust:
| Setting |
Description |
42-header.username |
Your 42 login (used for By, Created, Updated lines). |
42-header.email |
Your 42 student email. |
42-header.headerWidth |
Total width of the header block (default: 80). Increase for longer names. |
Prefer configuring via settings.json? Add:
{
"42-header.username": "your_login",
"42-header.email": "your_login@student.42.fr",
"42-header.headerWidth": 80
}
Issues & Contributing
Bug reports and pull requests are welcome! Please open an issue with reproduction steps or a PR describing the change.
License
MIT © 2025 — feel free to use, modify, and distribute under the terms of the MIT license.