« Getting started with Regex pattern | Main | using switches & .config files to control diagnostic output, app.config »

Enabling Windows Explorer to search in source files

Note: For the changes below to take effect, loging out and in is sufficient. Restarting Windows Explorer is not.

C# Source (.cs) file contents aren’t searched by default. Set the default text filter with the following saved as a “.reg” file:

 

REGEDIT4

[HKEY_CLASSES_ROOT\.cs\PersistentHandler]

@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"

 

Web Form (.aspx) file contents are filtered in a way that excludes code by default. Set full text search with:

REGEDIT4

[HKEY_CLASSES_ROOT\.aspx\PersistentHandler]

@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"

 

Restore the default handling with:

REGEDIT4

[HKEY_CLASSES_ROOT\.aspx\PersistentHandler]

@=" {eec97550-47a9-11cf-b952-00aa0051fe20}"

 

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)