Pattern for removing comments?


in our codebase there are a lot of

/// <summary>
/// Service dependency.
/// </summary>
public ISomeService SomeService { get; set; }

Which we'd like to shorten to

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?


1 comment
Comment actions Permalink

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

"Develop with pleasure!"


Please sign in to leave a comment.