A lightweight VS Code extension providing essential 42 utilities for C and Python development.
- Insert and maintain the 42 header
- Auto-insert headers on new files
- Track function count in
.cfiles from the status bar
# **************************************************************************** #
# #
# ::: :::::::: #
# ft_utils :+: :+: :+: #
# +:+ +:+ +:+ #
# By: mtaheri <mtaheri@student.42istanbul.com.tr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2025/11/15 20:39:25 by mtaheri #+# #+# #
# Updated: 2026/02/14 23:06:52 by mtaheri ### ########.fr #
# #
# **************************************************************************** #- Open Extensions in VS Code.
- Search for
ft_utilsand install. - Or run
ext install 2mdtln.ft-headerfrom the Command Palette.
- Command:
ft_utils: Insert 42 Header - Shortcut:
⌘⌥H(macOS) /Ctrl+Alt+H(Windows/Linux) - Inserts the standard 42 header at the top of the file.
- If the header already exists, it updates the
Updatedline. - Saving a file with an existing header refreshes the
Updatedtimestamp. - Uses a 79-character total header width for Python files to respect flake8 linter standards (
E501).
- Toggle from the status bar: 42 Auto Header
- Toggle from command:
ft_utils: Toggle 42 Auto Header - When enabled, creating a new file auto-inserts a header.
- Toggle from command:
ft_utils: Toggle Header Update On Save - Enabled by default.
- When disabled, saving files no longer refreshes the header
Updatedline.
- Shows
Functions: Nin the status bar when a.cfile is active. - Warns when function count is
> 5. - Updates automatically as you edit.
You can configure the extension in 2 ways.
- Open VS Code Settings.
- Search for
ft_utils. - Set:
ft_utils.email(your 42 email)ft_utils.login(optional override; defaults to the part before@in the email)
Add these keys to your VS Code settings.json:
{
"ft_utils.email": "login@student.42.fr"
}If this extension improves your workflow, consider ⭐ starring the repository.
This project is licensed under the MIT License.
© 2025–2026 Muhammed T (2mdtln)