Ask Your Question

Revision history [back]

To prevent npm task auto-detection from including specific folders in VS Code, follow these steps:

  1. Open the settings.json file in VS Code by navigating to Preferences → Settings or using the keyboard shortcut (Ctrl/Cmd + ,).
  2. Add the following line to your settings.json file:
"npm.exclude": ["<folder_name>/**"]

Replace <folder_name> with the name of the folder you want to exclude. You can add multiple folders by separating them with a comma.

  1. Save the settings.json file.

After making these changes, VS Code will exclude the specified folders from npm task auto-detection.