Skip to content

Instantly share code, notes, and snippets.

@CarloCattano
Last active November 30, 2022 10:39
Show Gist options
  • Save CarloCattano/51407002aba7ca86aba7b79d82bba94e to your computer and use it in GitHub Desktop.
Save CarloCattano/51407002aba7ca86aba7b79d82bba94e to your computer and use it in GitHub Desktop.
Add your 42 header from Vscode

Install 42 header 0.42.9

open extensions browser on Vscode and look for 42 header


1. Open Vscode and go to view -> Command Palette -> Type User settings JSON and clik on it to open the settings

2. Add this to your JSON preferences file

"42header.username": "yourintraname",
"42header.email": "yourintraname@student.42Berlin.de"

3. Save the file

4. On a new file with the name set already like ft_omg.c

5. Press Ctrl + Alt + H

you can change this shortcut to your liking, I leave that to you as extra points


/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   ft_omg.c                                           :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: ccattano <ccattano@student.42Berlin.de>    +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2022/10/27 12:59:11 by ccattano          #+#    #+#             */
/*   Updated: 2022/10/27 12:59:11 by ccattano         ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

There is a known/unfixed bug that removes the first line of your code when using it, so keep it in mind kube/vscode-42header#29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment