Okay, so this is a pretty simple one. Perhaps I should have figured it out way, way faster than I did, and perhaps nobody else will ever have trouble with this, but I never promised to be helpful. Or did I?
Anyway, here’s a pretty common scenario (around here, at least):
- Fire up Visual Studio 2010.
- Hit CTRL + SHIFT + F to bring up the Find and Replace dialog in “Find In Files” mode.
- Type a keyword that will bring up the area in your project you want to work with.
- Hit Enter.
- Wait.
- Finally notice that nothing is happening.
- Hit Enter again.
- And again.
- Mumble “What the hell…?”
- Reach for your mouse.
- Notice the “Final All” button is disabled.
- Say “What the hell?” a bit louder.
- Click the button anyway. (Nothing happens.)
- Stare at monitor with angry / confused expression.
Here’s the problem: in Visual Studio 2010, the “Find All” button isn’t enabled until you’ve opened a text file of some description. Once this happens, it will stay enabled until you close Visual Studio, even if you don’t have any documents open. Yeah, it’s a bug.
Here’s a workaround:
- Open any text document (code file, XML file, whatever).
- Hit CTRL + SHIFT + F to re-open the Find and Replace dialog.
If you’re looking for a quick keyboard fix, try CTRL + N, ENTER, CTRL + SHIFT + F, CTRL + F4.
And please, if this helps you, leave a comment and let me know. I’d really like to hear that I’m not the only person this bothers.
Thanks for this post! It minimised the time I spent in phase 14 :). Most appreciated!
ReplyDeleteJean
I had the TFS Explorer as the open tab in Visual Studio and was trying to do a search in the whole solution but lo and behold, the button was disabled. Thanks for pointing this out. I just had to switch to another tab that had code in it and the button became enabled.
ReplyDeleteHow stupid is this *feature* ?!?!
I was more WTF than WTH. Googled "VS Find and Replace buttons disabled" and this was on top. Thanks for the save!
ReplyDeleteThank you very much. It saved me time.
ReplyDeleteGracias. Un-freakin'-believable!
ReplyDeleteI was baffled! Thanks for this post. In my case, it goes back to being disabled if I close the file. So, there must always be a text file open.
ReplyDeleteThanks for the quick fix!
ReplyDeleteI posted this as a bug on Microsoft Connect. Please vote it up so it gets fixed.
ReplyDeletehttps://connect.microsoft.com/VisualStudio/feedback/details/678013/the-find-all-button-in-the-find-and-replace-dialog-is-disabled-unless-there-is-a-text-file-open
This is a duplicate of #622037, which was closed as 'Won't Fix'. See that issue for full details, including a very helpful explanation by Chris Dias (Program Manager, Visual Studio).
ReplyDeletehttps://connect.microsoft.com/VisualStudio/feedback/details/622037/
Seems like an old bug - the same thing happens in Visual Studio 2008 too. Thanks Paul for the link to Chris Dias's response. Not sure why they can't just mark it as low priority rather than "won't fix" - but if their team's like some I've worked on those do amount to much the same thing...
ReplyDeleteI have the same issue and new about the open a file to fix, but I wanted a better solution. There is a better workaround in the 2nd link above:
ReplyDeleteJust press the drop down of the 'Look in:' box and reselect 'Entire Solution' (even though it was already selected). The 'Find All' button is now enabled!!
I was coming to the comments to make this point as well, so +1 to it. Happened a long while, but it went away 'randomly' until I realized that what I needed to do was manipulate the 'Look In' dropdown selection.
DeleteThanks for the fix, what an annoying bug!
ReplyDeleteيمكن أن تسبب الأخطاء والأخطاء غير المرغوب فيها في منزلك أو مكان عملك الكثير من التوتر للأشخاص المعنيين. إذا كنت ترغب في تجنب الاستعانة بأخصائي مكافحة الآفات في ميسا للتعامل مع الإصابة ، فستحتاج إلى منع الآفات من غزو مساحتك. يمكنك القيام بذلك بشكل عام عن طريق الحفاظ على نظافة البيئة وختم المناطق التي تجعل منزلك أو عملك متاحًا للآفات.شركة مكافحة حشرات
ReplyDeleteشركة مكافحة النمل الابيض بالخبر
شركة مكافحة حشرات بالخبر
شركة رش مبيدات بالخبر