VS Code Tip of the Week: Add a gitignore via VS Code
Nick Taylor
Posted on June 14, 2022
This week's tip of the week is coming from my old coworker @citizen428. On one my streams on livecoding.ca, I show you how you can add a gitignore file to a project via npx gitignore
.
Little did I know this is baked into VS Code!
Press CTRL + Shift + P (CMD + Shift + P on macOS) to open the command palette.
Type in Add gitignore
in the command palette.
You'll be presented with a language to generate the gitignore file for.
And there you go! You have a fresh gitgnore file in your repository now!
Happy VS Coding!
💖 💪 🙅 🚩
Nick Taylor
Posted on June 14, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.