How can I keep SSMS Find and replace in files "Look In" from changing

Viewed 2083

In SSMS when I do a

Find and Replace in Files

(default keystroke CTRL+SHIFT+H)

Edit > Find and Replace > Replace in Files

If I set the "Look In" to "Current Document" then do a change and select the Replace All button, the Look In dropdown changes to select

All Open Documents

How can I keep Look In set to whatever I previously have selected? I want to KEEP it set to Current Document Frankly this behavior is super annoying.

2 Answers

A workaround for this that works for me; open another query window and leave it blank. When you do a replace it defaults to "All Open Documents" instead of "Entire Solution".

Related