Search with ReSharper 5 Template

Recently, I came across the Search with Image tool in the new ReSharper.

I tried to search

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

but when I look for him, he just says: "Unable to parse the template"

when i use private access modifier, it works. But I'm trying to explicitly search for it using an access modifier.

I also tried

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

and also returns "Unable to parse pattern"

Is it possible?

+4
source share
1 answer

Currently, searching with a template can only search inside the body of a method, not for a class member.

+7
source

All Articles