Skip to content

Instantly share code, notes, and snippets.

@pawelrubin
Created May 6, 2022 09:45
Show Gist options
  • Save pawelrubin/095ee33617176005e4ca6015000d53ad to your computer and use it in GitHub Desktop.
Save pawelrubin/095ee33617176005e4ca6015000d53ad to your computer and use it in GitHub Desktop.
Global .gitignore in VS Code

How to setup global .gitignore file in VS Code

  1. Create a file that will be your global .gitignore, for example ~/.gitignore;
  2. Set core.excludesFile in git config
git config --global core.excludesFile ~/.gitignore
  1. Add the settings below to the global settings file
{
    "search.useGlobalIgnoreFiles": true,
    "search.useIgnoreFiles": true,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment