David
David

Reputation: 4963

Default options in Find and Replace search dialog in Visual Studio not updating

Recently my Visual Studio (2013) just decided that the first time I did a Find in Files (Ctrl + shift + F), the "Match whole word" option would be checked. Always. I can turn it off and it will stay off until the next time I start VS (or start a new instance). I have combed through the options, but could not find any settings related to this.

I disabled all my extensions and even tried resetting my environment (Tools -> Import and export settings -> Reset all settings) but still, every time I search, I have to remember to first uncheck the box.

enter image description here

Where is this setting stored and how can I fix it?

Upvotes: 2

Views: 1803

Answers (2)

Ev Conrad
Ev Conrad

Reputation: 333

Go to the 'Look at these file types' dropdown. It is blank - to have this screen update properly, put in the default search mask '.' - the page should now store settings properly.

Upvotes: 0

David
David

Reputation: 4963

I found 2 things.

  1. There is an extension called "SmartFind" that you can get in the extension gallery. While fixing this particular error isn't exactly what it was meant to do, it works. However, it felt like a Band-aid fix to me and I wanted to know where the setting actually lived...
  2. This question and answer is about something different (related, but different), but got me to the right place. The answer is to go to

    HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\<YOUR VERSION>\Find

    • Note that <YOUR VERSION> can be found by going to Help -> About Microsoft Visual Studio. For 2013, the version is 12.

      Version

    Find the key DialogOptions and set the WholeWord portion to 0.

    Registry

Upvotes: 2

Related Questions