Custom Find in Files Filter

I recently rediscovered that it’s possible to create custom file type filters for the Find in Files dialog. This can be done by editing the “FileFilter.cfg” configuration file found in the Automation Studio install directory (e.g., C:\Program Files (x86)\BRAutomation\AS6\AS\ApplicationSettings for Automation Studio 6).

I added a new element to the 6th slot containing the file types I often search:

<Element ID="FileFilter6" Type="FindReplaceFileFilter">
    <Property ID="Extension1" Value="*.st" />
    <Property ID="Extension2" Value="*.c" />
    <Property ID="Extension3" Value="*.h" />
    <Property ID="Extension4" Value="*.s" />
    <Property ID="Extension5" Value="*.cpp" />
    <Property ID="Extension6" Value="*.hpp" />
    <Property ID="Extension7" Value="*.fun" />
    <Property ID="Extension8" Value="*.var" />
    <Property ID="Extension9" Value="*.typ" />	
	<Property ID="Extension10" Value="*.iom" />
    <Property ID="Extension11" Value="*.per" />
    <Property ID="Extension12" Value="*.vvm" />
  </Element>

The result is a custom filter that I can use instead of searching multiple times or waiting for a full project search to complete.

Disclaimer: Make sure to back this file up before you edit it! This is a workaround rather than an intended feature, so I’m sure it’s possible to break something.

7 Likes

If you only need a quick custom filter you can also just enter your filter criteria into the selection field.
It will remain there as option until overwritten with something else.

2 Likes

You learn something new every day! Interestingly, when I create the filter that way, it doesn’t modify the config file.

I did confirm that, via the config file, I’m able to create multiple custom filters that are saved between AS restarts. Your way seems a little easier but at least I have a solution for that if that’s ever needed. :grin:

1 Like

Hello Marcus,

this filters are stored in the registry
Computer\HKEY_CURRENT_USER\Software\BR_Automation\Automation Studio\AS412\FindInFilesData

2 Likes

Interesting.. thanks for sharing :slight_smile: