I have inadvertantly added some entries to the "Find and Replace" dialog in Visual Studio 2010. See picture below:

enter image description here

I want to remove \r\n, Double, etc.

How can I do this?

  • How the heck did you add them? :) Mar 21 '12 at 15:42
  • I'm not even sure. My best guess is that the focus was in that field when I was typing and I didn't notice. Mar 21 '12 at 21:43

These entries are located in the following registry key:


They will be prefixed with Query and then followed by a number.

  • 5
    It's simply ridiculous that you need to edit the registry to remove something from the "Look in" field. Thanks for this answer though.
    – zzzzBov
    Oct 4 '12 at 15:19
  • 4
    Note that the entries came back after I deleted them using regedt32.exe, because I then closed a running Visual Studio instance, after doing a "Save All". So close VS before deleting them. And that further entries can be found in ...\Find\Named that still show up in "Look In". Did not try to remove those.
    – ddevienne
    May 6 '14 at 9:10
  • Such an entry is not present when you use VS 2017 (version 15.0).
    – jciloa
    Jun 21 '19 at 11:46
  • 2
    @jciloa Visual Studio 2017 uses its own private registry hive. See here: stackoverflow.com/questions/41119996/…
    – Dai
    Jul 4 '19 at 15:02

The location for those entries is:

HKEY_USERS \ {user guid} \Software\Microsoft\VisualStudio\10.0\Find

where [user guid] is the guid for the current user.

really I just searched the registry for some entries that I added by accident while testing if there was another way to remove them.

  • Such an entry is not present when you use VS 2017 (version 15.0).
    – jciloa
    Jun 21 '19 at 11:47
  • Nitpick: Users don't have GUID, instead they have SIDs. A SID has a different format to a GUID: en.wikipedia.org/wiki/Security_Identifier
    – Dai
    Jul 4 '19 at 15:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.