views:

86

answers:

1

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?

+2  A: 

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

kropp
Oh thats a bummer.
Chris Watts
Has this been written up in YouTrack yet, so we can vote for it?
Joe White