Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>ft_headerNew to Visual Studio Code? Get it now.
ft_header

ft_header

2mdtln

|
2 installs
| (0) | Free
Generate 42-style file headers using your name, email, with customizable header width for long names. Great for Piscine and Core projects.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

42 Header

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

  1. Launch VS Code and open the Extensions view.
  2. Search for 42 Header and click Install (or run ext install ft-header from the command palette).
  3. Reload VS Code if prompted.

How to Use

  1. Open any supported source file (C, C++, JavaScript, Python, etc.).
  2. Press ⌘⌥H (macOS) or Ctrl+Alt+H (Windows/Linux), or run Insert 42 Header from the Command Palette.
  3. The header is inserted at the top of the file. Re-running the command refreshes only the “Updated” timestamp.
  4. Saving a file that already contains the header automatically updates the Updated line.
  5. Use the status bar toggle labeled 42 Auto Header to enable automatic insertion whenever you create a new file.

How to Configure

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.

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