Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>Add to .gitignoreNew to Visual Studio Code? Get it now.
Add to .gitignore

Add to .gitignore

djlynn03

|
6,543 installs
| (1) | Free
Add a file to .gitignore through the VSCode file explorer
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Features

Add file from file explorer

Right click a file in the file explorer and click Add to .gitignore to add it to the workspace .gitignore file.

Add file from editor

Right click inside the editor and click Add to .gitignore to add the current file to the workspace .gitignore file.

Extension Settings

This extension contributes the following settings:

  • add-to-git-ignore.enabled: Enable/disable this extension.
  • add-to-git-ignore.gitignorePath: Set the path to the .gitignore file. Default is .gitignore in the root of the workspace.

Release Notes

1.0.0

Initial release of Add to .gitignore

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