This is a migrated thread and some comments may be shown as answers.

Using Linq causes major template problems

1 Answer 40 Views
Code Templates
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Steve
Top achievements
Rank 1
Steve asked on 30 Oct 2010, 10:57 PM
I use a lot of Linq and with the latest changes in Templates it becomes nearly impossible to write Linq statements without having a template incorrectly popping up.

I have attached an image of what the template ends up adding but here is what I have coded and the image shows what JustCode adds...

var query =
    from e

At this point I hit space after the e and it throws in the enum template where it just plain shouldn't be. This will happen for any of the template single character keys. What makes it worse is that I can't turn it off (another post already created for that). The templates need a lot of work.

Steve

1 Answer, 1 is accepted

Sort by
0
Tsviatko Yovtchev
Telerik team
answered on 01 Nov 2010, 09:15 AM
Hello Steve,

 Clearly this is an unwanted behavior.  You ended up that way because you installed a succession of internal builds. Please, refer to your other post - http://www.telerik.com/community/forums/justcode/code-templates/template-generation-will-not-turn-off.aspx for a more detailed explanation and a solution of that problem.

Sincerely yours,
Tsviatko Yovtchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Code Templates
Asked by
Steve
Top achievements
Rank 1
Answers by
Tsviatko Yovtchev
Telerik team
Share this question
or