Sign in to follow this  

Searching inside collapsed code blocks?

This topic is 4326 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
"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

This topic is 4326 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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