How to remove all C# methods/properties/fields "summary" comments
(starting with ///
)
in current document in Visual Studio with one shot?
In other words convert this:
/// <summary>
/// Very stupid comment generated with very stupid tool
/// </summary>
protected void MyMethod
{
}
Into this:
protected void MyMethod
{
}
C library function - remove() The C library function int remove(const char *filename) deletes the given filename so that it is no longer accessible.
str = str. replaceAll("[^\\d]", ""); You can try this java code in a function by taking the input value and returning the replaced value as per your requirement.
How about
Use
: Regular expressions
Find what
field following expression ^.*\/\/\/.*$\n
(shortly - line with ///
pattern)Replace with
field emptyLook in
in Current Document
Replace All
Regex pattern ^.*\/\/\/ ?<summary>.*\n(?:^.*\/\/\/.*$\n)*
will be more suitable in this case because it will match whole summary comment at once.
^.*\/\/\/ ?<summary>.*\n
- matches line with /// <summary>
text (with optional space after slashes)(?:)+
- non-capturing group, repeated zero or more times^
- beginning of the line.*
- any characters\/\/\/
- three slashes.*
- any characters$
- end of line\n
- line break symbolIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With