Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Filtering out directories from Find References
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

HateDread
Junior Member

Australia
24 Posts

Posted - Jun 13 2026 :  9:24:19 PM  Show Profile  Reply with Quote
Hey folks,

I have a bunch of generated files in /Generated/ subdirs in each of my libraries/projects, and sometimes when I want to Find References to a symbol that is referenced in generated files and non-generated files, what I _really_ want is to find all the places I have manually referenced them in the real, non-generated code.

In VS' Find All text search, I can do this in the 'File types' section

!*\bin\*;!*\obj\*;!*\.*\*;!*\Generated\*

And anything under a "Generated" subdir will be excluded.

Is there anything like that I can do in VAX? Sometimes I'd need to turn it off, so not a permanent/annoying change ideally. It can just be annoying when I want to find what I did with a specific type and get 100s of generated code hits that are not important to me.

Thanks!

Edited by - HateDread on Jun 13 2026 9:25:19 PM

feline
Whole Tomato Software

United Kingdom
19387 Posts

Posted - Jun 18 2026 :  10:33:09 AM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000