Strange problem with File Templates

Hi everybody,

maybe someone can give me a help. I have written a File Template which generates a class with a basic structure (some methods, some properties). There are 9 fields to be filled out by the user. One of those fields lets the user to enter an attribute and another field for a parameter to the constructor of the chosen attribute. So the code in the file template looks like this:

[$EnterAttributeHere$($EnterParameter$)]
public void MyMethode()
{
}

No let's come to the point. If the user chooses the attibute (R#'s IntelliSense is coming up) and it is one with two constructors, then the enter mode for the fields of the template stops immediately (even though some fields are still not edited !!!)

What have I done wrong? Or - unbelievable that - what did R# wrong?

Greets Andy

2 comments
Comment actions Permalink

Hello Andy,

I wasn't able to reproduce this behavior. Which version of ReSharper are
you using? Could you please export your template as an xml file and attach
it here along with exact repro steps? Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hi everybody,

maybe someone can give me a help. I have written a File Template which
generates a class with a basic structure (some methods, some
properties). There are 9 fields to be filled out by the user. One of
those fields lets the user to enter an attribute and another field for
a parameter to the constructor of the chosen attribute. So the code in
the file template looks like this:


public void MyMethode()
{
}
No let's come to the point. If the user chooses the attibute (R#'s
IntelliSense is coming up) and it is one with two constructors, then
the enter mode for the fields of the template stops immediately (even
though some fields are still not edited !!!)

What have I done wrong? Or - unbelievable that - what did R# wrong?

Greets Andy

---
Original message URL:
http://devnet.jetbrains.net/message/5274747#5274747



0
Comment actions Permalink

Hi Andrey,

I try to make a little sample of it. Will take time til next week ... (there is a lot to do right now)

Greets Andy

0

Please sign in to leave a comment.