VS Code files.exclude[!except] Generator

Generate VS Code config to exclude a directory (e.g. node_modules) with the exception of specified subpaths.

Configuration

Generated JSON

{
  "files.exclude": {
    "**/node_modules/**": true
  }
}

How to use:

  1. Copy the generated JSON
  2. In VS Code, open settings.json
    Ctrl+Shift+POpen Settings (JSON)
  3. Paste the code into settings.json
  4. Save settings.json
Made out of frustration by James Furey (see: vscode/issues/869)
Buy Me A Coffee