It can be as simple as telling VS Code not to index / search for specific folders. Are there any /vendor or /dist folders that you do not want to search? Try the following:
- Do one of your slow searches.
- Look at the files that are returned
- See if there are any files that will be returned to a folder that you donβt need
For each of these folders, add them to the files.exclude section of your settings file:
"files.exclude": { "**/dist*": true, "**/node_modules*": true },
If there are any really large files that appear in the search, add them too.
The fewer files you need to search, the faster it will be
source share