Question

I just recently ran into the "Search with Pattern" tool in the new ReSharper.

I tried to search for

private $Type$ $Var$ = new $Type$($TypeArgs$);

but when I search it just says "Cannot parse pattern"

when I take way the private access modifier it works. But I am trying to explicitly search for it with the access modifier.

I have also tried

$Modifier$ $Type$ $Var$ = new $Type$($TypeArgs$);

and that also returns "Cannot parse pattern"

Is this even possible?

Was it helpful?

Solution

Currently Search with Pattern can only search inside method body, not for a class member.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top