A extension for Visual Studio Code that assists you in working with .gitignore
files.
- Add local
.gitignore
file by pulling .gitignore templates from the github/gitignore repository - Language support for
.gitignore
files
Start command palette (with Ctrl+Shift+P or F1) and start typing Add gitignore
{
// Number of seconds the list of `.gitignore` files retrieved from github will be cached
"gitignore.cacheExpirationInterval": 3600
}
This extension makes API calls to the GitHub REST API which are subject to rate limits.
By default, requests sent to the GitHub REST API are unauthenticated. Although the rate limit for unauthenticated requests is low, this should usually not be an issue because of caching and the most likely infrequent usage of this extension.
If you reach the rate limit (e.g. because you work inside a corporate network), you can switch to authenticated requests by setting the GITHUB_AUTHORIZATION
environment variable.
Using a personal access token:
export GITHUB_AUTHORIZATION='Token <oauth2-token>'
code
Using an OAuth2 key/secret
export GITHUB_AUTHORIZATION='Basic <base65-encoded-key-secret>'
code
- Basic implementation that allows to pull a single
.gitignore
file
- Add language support for
.gitignore
files
- Support reading
.gitignore
files from subdirectories in the github/gitignore repository
- Support adding multiple
.gitignore
files and merge it to a.gitignore
file
- Support proxy
- Update extension to more recent vscode ecosystem
- Update dependencies
- Support multi-root workspaces (see contribution by @hangxingliu)
- Fix bugs
- Remove
github
dependency - Update dependencies
- Switch to async/await
- Further improve proxy support
- Add unit tests with active proxy
See CHANGELOG.md
See LICENSE file
Icon based on the Git logo by Jason Long