Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Filtering out directories from Find References

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
HateDread Posted - Jun 13 2026 : 9:24:19 PM
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!
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jun 18 2026 : 10:33:09 AM
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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000