VS Code Tip of the Week: Exclude Git Ignore

nickytonline

Nick Taylor

Posted on August 29, 2022

VS Code Tip of the Week: Exclude Git Ignore

This week's tip is the Exclude Git Ignore user setting. This is a great feature to declutter the tree explorer of VS Code with files your project ignores via its .gitignore file.

The setting can be enabled/disabled in your user settings for VS Code. You can open the settings starting the command palette and searching for settings.

VS Code command palette open with the search term settings entered

The user settings window opens. Search for gitignore and press the ENTER key or use the filter button. Ensure the Explorer: Exclude Git Ignore option is checked.

VS Code user settings user interface open and filtered on the word gitignore

You can also change the settings in settings.json. Open the command palette again and search for settings. This time select Settings (JSON).

VS Code command palette open with the search term settings entered and Settings (JSON) is selected

In the settings.json file, add the following key/value pair:

"explorer.excludeGitIgnore": true

And that's it!

Happy VS Coding!

💖 💪 🙅 🚩
nickytonline
Nick Taylor

Posted on August 29, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related