Sign in to follow this  
BeanDog

Searching inside collapsed code blocks?

Recommended Posts

BeanDog    1065
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?

Share this post


Link to post
Share on other sites
Nypyren    12074
"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)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this