Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

VS 2012 Find and Replace changes Look in to All Open after a search in Current Document

$
0
0

I'm using Visual Studio 2012, Update 3. I'm working in an SQL script, but have noticed it in C# code as well.

To replicate:

Bring up Find and Replace (I use Ctrl-H)

I Set the 'Find what' and 'Replace with' values, then set 'Look in' to Current Document

I Click 'Replace All'

Message comes up 'x occurrence(s) replaced.' 

I press OK

Visual Studio switches 'Look in' to 'All Open Documents'even though I had selected 'Current Document'

If I don't notice that this was changed and do another Find and Replace I can mess up other open documents where I do NOT want to do the Replace.

Is there a way to turn off this behavior?


M Kenyon II



Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>