Is there a way to force the Find and Replace dialog boxes, in visual studio, to auto select Current Document in the Look in drop down? It should do this only on reopening the dialog. I regularly forget to switch back from entire solution or project and end up wasting a lot of time waiting for VS to search everything including designer files! I'm hoping for a registry hack or something.
I'm sure this is a major annoyance for others too. Any tips on this would be greatly appreciated!
As an alternative, you can use the Find combo box to only search the current document. The shortcut is
Ctrl+/
or maybeCtrl+D
. It moves the focus to the Find combo box and you can type and press Enter to search.Visual Studio retains separate settings for dialogs shown using
Ctrl+F
andCtrl+Shift+F
shortcuts, though dialogs themselves are identical. So when I want to search in current document, I hitCtrl+F
. When I want to search in Project/Solution/directory, I hitCtrl+Shift+F
and then choose where I want to search.