Pattern for removing comments?
Hi,
in our codebase there are a lot of
/// <summary>
/// Service dependency.
/// </summary>
[ServiceDependency]
public ISomeService SomeService { get; set; }
Which we'd like to shorten to
[ServiceDependency]
public ISomeService SomeService { get; set; }
I created a simple pattern for this and it works, but the problem is that it also highlights the fixed properties that don't have a comment.
Is there a way to specify a pattern that is forced to match the comment? That is, when there's no comment, there's no match?
Thanks,
Steven
Please sign in to leave a comment.
Hello Steven
I'm afraid there's no way to specify a placeholder in a pattern that explicitly matches a comment. Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"