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#:...

Read full article

No Comments