Add2Gitignore lets you right-click any file or folder in the VS Code Explorer and instantly append it to the nearest Git repository's .gitignore file. In multi-root or large workspaces containing several Git repos, it walks upward from the selected path to find the closest .git directory so you always update the correct .gitignore.
Features
Finds the nearest Git repository root (searches for a .git directory upward)