title: Is there a way to collapse code in Visual Studio conditionally if it contains specified text?
body: <p>I have some code that frequently contains 10 lines or so for error reporting which is repetitive and obstructs the readability of the rest of the code. The first line is an if statement that contains a phrase that could be used to find and collapse all sections handling the error reporting so that I can see all the 'normal' code that is not handling error reporting.</p>
  
  <p>I can manually collapse the if statement, but does anyone know of an extension or some method of collapsing all sections of code that contains specified text?</p>