A simple extension for Visual Studio Code that lets you pull .gitignore files from the https://github.com/github/gitignore repository
A extension for Visual Studio Code that assists you in working with .gitignore
files.
.gitignore
file by pulling .gitignore templates from the github/gitignore repository.gitignore
filesStart 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
.gitignore
file.gitignore
files.gitignore
files from subdirectories in the github/gitignore repository.gitignore
files and merge it to a .gitignore
filegithub
dependencySee CHANGELOG.md
See LICENSE file
Icon based on the Git logo by Jason Long