Try this:
- Go to: File > Preferences > Settings
- Type in the search field: exclude
- Add the following under “Files: Exclude”:
**/node_modules
- And add the following under “Files: Watcher Exclude”:
**/node_modules/*/**
I hope this is what you are looking for (which works for me)