How to cut robo comments and # areas from c #?

I have some code that I support, which has many machine comments and areas created by the machine. (or created by the developer with particularly misconception)

These are comments that exclusively repeat method metadata and spatial extensions of pascal names:

#region methods
/// <summary>
/// Implementation of a public method foo bar, returning a void
/// </summary>
/// <param name="value">A string parameter named value input</param>
public void fooBar(string valueInput)
{

}
#endregion

Is there a plugin or Resharper function to remove comments and #region tags in bulk?

+5
source share
4 answers

Why not use regular expression search and replace in Visual Studio?

For triple slash comments:

    ///.*

For region tags:

    [#] region. *
    [#]endregion
+4

, , :

foo bar,

value input

, xml - intellisense . ; , .

+1

, - , , . , (, , ), , , ): -)

, , .

VS 'regex find/replace.

+1

I vote for you to come in and correct them when you run into them. I had to do the same here ... every time I enter a class with bad comments (in my case: no). I comment on methods / properties when working with them. After 3 weeks, I correctly commented on about 1/2 of the code base and developed a deeper understanding of the entire project.

+1
source

All Articles