Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Add to GIT IgnoreNew to Visual Studio Code? Get it now.
Add to GIT Ignore

Add to GIT Ignore

Maciej Dems

|
56,049 installs
| (3) | Free
Add file to .gitignore
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

git-ignore-file README

This an extension "Add to GIT ignore", which adds files to .gitignore or .git/info/exclude.

Features

Add files/folder or general patterns based on their filename to .gitignore or .git/info/exclude.

Usage

Right-click the file or folder in the Explorer or Source Control and select Add to GIT Ignore List....

Explorer menu

A list of possible patterns based on the filename of your selected file appears. Choose the one you like.

Pattern select

Next, you need to select whether to add the pattern to the .gitignore file (this file is usually shared in GIT) or to .git/info/exclude (select this if you do not want to share the exclusion).

Target select

Release Notes

See the changelog

Contributors

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