Searching inside collapsed code blocks?

Started by
0 comments, last by Nypyren 18 years, 1 month ago
I often use the #region's in C# to make large source files more manageable. The advantage is that these regions are collapsed when the file opens, so the file's not so imposing when looking for a certain area of code. This is my problem, though. Often I open such a file and want to do a text search for some code that's buried in there somewhere. Every time I do, I have to right click the document->Outlining->Toggle All Outlining to open up everything for a search. Is there a way in Visual Studio (2003? 2005?) to search inside collapsed code blocks?
Advertisement
"Search Hidden Text" in the search options. (Note: This will search both hidden and "unhidden" which is probably what you want. I don't know of any time you'd only want to search hidden by itself... heh)

This topic is closed to new replies.

Advertisement