Live template - Suggest variable of type

I have set up a live template and it is not behaving as I expect. It doesn't appear to be able to suggest a variable of a certain type. All I get is a lowercase version of the type, even though there is a variable of the correct type in scope.

Here is the template:


$READERVAR$ is defined as Suggest variable of System.Data.IDataReader

When executed in a block where I have an IDataReader instance named reader, the only suggestion is idatareader.

Thanks!

Todd Breiholz

1 comment
Comment actions Permalink

I've submitted request into the tracker:

http://www.intellij.net/tracker/resharper/viewSCR?publicId=10377

and we will fix it soon.

Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I have set up a live template and it is not behaving as I expect. It
doesn't appear to be able to suggest a variable of a certain type. All
I get is a lowercase version of the type, even though there is a
variable of the correct type in scope.

Here is the template:

 {
> $VAR$ = $READERVAR$.GetString($INDEX$);
> }]]>

$READERVAR$ is defined as Suggest variable of System.Data.IDataReader

When executed in a block where I have an IDataReader instance named
reader, the only suggestion is idatareader.

Thanks!

Todd Breiholz



0

Please sign in to leave a comment.