T4 Toolbox for Visual Studio 2013


Extends Text Templates with syntax colorization, error reporting, outlining, QuickInfo tooltips, statement completion, generation of multiple output files with source control integration, support for template parameters in Solution Explorer properties and more.

(3) Review
Visual Studio
Download (5,783)
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Reviews (3)
Q and A (4)
Sign in to write a review
Sort by:

by Jimmy Main | January 16 2014

by Peter Kuhn | November 12 2013

Thanks for the update!

by Massimiliano.Donini | November 12 2013

The best syntax highlight extension for T4.

Sign in to start a discussion

  • Color Schemas
    1 Posts | Last post March 14, 2014
    • I am using a dark color schema.  I simply can't read template files in this schema with this extension.  Is there a way to change the color highlighting?
  • source?
    1 Posts | Last post January 16, 2014
    • Hi Oleg,
      The original T4 toolbox was open source, and located at codeplex.
      Are you considering updating the source with this new version, or better still adding this version to github?
      Will it remain closed?
      I am really hoping that you open it up again... Either way it's a useful plugin.
  • .t4 file extension support for code templates
    1 Posts | Last post November 19, 2013
    • This extension may serve a different purpose then what I have in mind, but upon installing I expected to be able to edit *.t4 files with syntax highlighting. Am I missing something? Are there plans to support *.cs.t4 files?
  • Compiling transformation
    2 Posts | Last post November 16, 2013
    • Hello,
      In previous version of T4Toolbox (v10) I used custom transformation property and access it as follow:
      Now the TransformationContext now implements the Singleton pattern, so I should be able to access it as follow
      but now received the following error:
      Compiling transformation: 'Microsoft.VisualStudio.TextTemplating.TextTransformation' does not contain a definition for 'MyProperty' and no extension method 'MyProperty' accepting a first argument of type 'Microsoft.VisualStudio.TextTemplating.TextTransformation' could be found (are you missing a using directive or an assembly reference?)	
    • Nemak, You're right; this was lost in the upgrade from v10 to v11. As an alternative, you can use the Session property. It is a dictionary shared by the transformation (script) and all of the templates. In other words, in your main transformation you can do this:
      this.Session["MyProperty"] = myValue;
      and in any of the templates it creates you will be able to access this value the same way:
      var myValue = this.Session["MyProperty"];
      Hope this helps,