Looking for Help For Guessing Variable for a Live Templates


I'm trying to write a live template where there are a couple of variables to be entered.

For Example:

   Assert.AreEqual( $expected$, $valueToTest$, "$message$" );

What I am trying to accomplish is create a macro for the $expected$ variable to suggest a variable of the same type as the type for $valueToTest$.

When I look at the existing variables I can select the macro "Suggest variable of type" but that type is hard coded.

Does anybody know if this is possible to do.

For Example: if $valueToTest is a of type 'EnumABC' then I would like resharper to suggest a variable that is of type 'EnumABC'.

-- Kevin

Please sign in to leave a comment.