Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ugultopu/0a6a9e6f62cc2419e7253a06c54bb38e to your computer and use it in GitHub Desktop.
Save ugultopu/0a6a9e6f62cc2419e7253a06c54bb38e to your computer and use it in GitHub Desktop.
  1. Navigate to the Search tab (SHIFTCMDF).
  2. Enter the text to search in the top box.
  3. In the box named "filed to include", enter the path of the Node.js module that you would like to perform the search on. For example: ./node_modules/jsdom.
  4. On the right of the box named "files to exclude", click on the gear icon to disable excluding ignored files. That is, deactivate the "Use Exclude Settings and Ignore Files" button.

That's it. The last step is frequently overlooked, so it is particularly important. If you do not deactivate it, then the search will be made only for files that are already open as a tab on your Visual Studio Code window, which would be misleading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment