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

|
41,949 installs
| (2) | 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 is the README for the extension "Add to GIT ignore", which adds files to .gitignore or .git/info/exclude.

Features

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

Usage

Right-click the file in the Explorer 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

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