It’s not about using .gitignore to ignore certain files, it’s about completely excluding that particular repository from file watcher of VS Code.
It complains that there’s more than 5000 files are opened and then just hanged my laptop. This repository has insane amount of files, and it’s located in my home folder as my configs are stored in git, in .gitignore I’ve added all files to ignore, and when I need to stash the files I’m using git add -f <file>
.
As you can see on the picture, the repository "holms" is always opened, and it's causing me issues. This is parent repo, which is in my home folder. How can I ignore it completely? If I close that repo, it appears again after like 3 minutes of working in a editor
User Settings
(Right panel), add the following:"git.enabled"
: false,`