There is no really good "temporarily" ignore these files and directories setting in VA.
If you don't want VA to look at, parse or search these files ever that is easy, and is done via the setting:
VA Options -> Advanced -> Performance -> Do not parse files excluded by .vscode\settings.json (requires restart)
You can turn this off again, but it does require an IDE restart to take effect.
If you want to use this setting, my test case "settings.json" file is:
{
"files.exclude": {
"*/cpp_dll_cpp17": true,
"cpp_dll_cpp20" : true,
"**/bugs" : true,
"**/code_formatting_tests/clangFormatBase" : true,
"**/test_plain_text.txt" : true,
"**/*.xaml" : true
}
}
where the first 4 excluded lines are directories. Then a single specific file is excluded, and finally a file extension is excluded.
If instead you want to "filter" down the Find References Results list, then use the filter field at the top of the Find References Results list. You cannot exclude things via this filter, but you can search for "\generated\", and then delete all of these file nodes, taking all of their results with them. Then remove the filter, so you are left with only the results you want.