How can I hide tracing code in Visual Studio IDE C# ?

Posted by Mark on Stack Overflow See other posts from Stack Overflow or by Mark
Published on 2010-03-29T20:18:04Z Indexed on 2010/03/29 20:33 UTC
Read the original article Hit count: 364

As I'm starting to put more tracing in my code, i'm realizing it adds a lot of clutter. I know Visual Studio allows you to hide and reveal code, however, i'd like to be able group code into "tracing" code and then hide it and reveal at will as i'm reading the code. I suppose it could do this either per file or per class or per function.

Is there any way to do this? What do you guys do?

Adding some clarification

The hide current feature kind of allows you to do this except that when the code is hidden, you can't tell if its tracing or not. You also can't say "hide all tracing code" and "reveal all tracing code" which is useful when reading a function depending on what you are trying to do.

© Stack Overflow or respective owner

Related posts about visual-studio

Related posts about c#