http://blogs.clariusconsulting.net/kzu

Daniel Cazzulino's Blog

Go Back to
kzu′s Latest post

Why Visual T4 is the greatest T4 editor in the world

Unlike every other T4 editor out there, Clarius Visual T4 is the only one to embed the actual C# editor inside the T4 code blocks. This may seem like irrelevant implementation detail to some, but let me show you why it’s not.

First, your language settings are fully honored, and not just because we read them and use them for our own editor (like other editors may do), but because it’s the built-in C# editor doing the work!

image

image

Tooltips as usual in C#:

image

Intellisense on APIs as usual in C#:

image

Parameter info as usual in C# code :)

image

Pretty good indenting!

image

Full support for VERY complex includes! (the EF one has 2200+ lines)

image

Full T4 directives intellisense with tooltips, as you’d expect:

image

Can add arbitrary assemblies an get their intellisense too:

image

Can build any LINQ query you fancy with full intellisense:

image

Use your favorite code snippets as usual in C#:

image

With even full anonymous types support:

image

And Intellisense of course:

image

 

But even more important, ALL of your third-party editor productivity extensions are ALSO available right there, improving your productivity even when writing T4 code.

You can see below the very handy Quick Add Reference in action, working from inside a C# embedded code block:

visualt4-01

Or the Regex Editor, used to edit a regular expression inside a C# code block:

visualt4-02

 

In short, unmatched, uncompromised, fully integrated T4 editing. And for a limited time, it only costs $9.99! Go get it while it lasts :)

Comments

8 Comments

  1. [...] your favorite code snippets as usual in C#:…Read full article Published Friday, July 05, 2013 5:57 PM by Daniel Cazzulino Filed under: [...]

  2. When I try to purchase this, I get all the way to the payment screen and when I submit I only get an error of “You have already signed up with this account information.”

    -Glen

  3. Please ignore my previous message. PEBKAC.

  4. As for the code in the t4 blocks this is the only way to do it right, i suppose, but visual t4 seems to be lacking syntax highlighting for the output blocks.
    Very unfortunate.

  5. We still receive
    the preview version of visual t4 is expired, at my work
    in Visual Studio 2010 with version 2.02 of Visual T4, will this ever be fixed in Visual Studio 2010 or will we have to wait until we can install Visual Studio 2012?

  6. Bought Visual T4 Editor… There is no way to download it from DevStore. Should I get an email with download instructions? If so? How long does it take?

    Richard Brown
    REB