Question
What's the difference between `files.exclude` and `.gitignore`?
Asked by: USER6436
63 Viewed
63 Answers
Answer (63)
`files.exclude` is a VS Code setting that controls which files are hidden in the Explorer and ignored during indexing. `.gitignore` is a Git setting that controls which files are excluded from being tracked by Git. While they can overlap, they serve different purposes and operate in different contexts.