Using wildcard searches in Visual Studio to locate parts of configuration files

Build 1501 on 14/Nov/2017  This topic last edited on: 21/Mar/2016, at 18:34

In many GN4 configuration files or addins, the naming syntax is rather flexible, thus somewhat difficult to locate in searching.

An example: a main tab item can be defined either as:

<l:ShellTabItem Header="Shell" x:Name="ShellMainTab"

or

<l:ShellTabItem x:Name="CollectionsMainTab" Header="Collections"

or

<l:ShellTabItem xmlns="...." x:Name="CollectionsMainTab" Header="Collections"

The best practice to locate all such lines in all open documents by a single search in Visual Studio Express is to use the regular expressions or wildcard searches (wildcard searches are not available in Visual Studio Express 2012 or newer - use regular expressions instead as explained in ).

Click to toggle expandUsing regular expressions in Visual Studio Express 2012 or newer
Click to expandUsing wildcard searches in VBExpress prior to 2012