Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>T4 SupportNew to Visual Studio Code? Get it now.

T4 Support

Zachary Becknell

|
22,846 installs
| (4) | Free
Provides syntax highlighting for T4 Text Templates.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

T4 Support

Very basic language support for T4 Text Templates (.tt, .ttinclude) files.

For more information about using T4 templates, see Code Generation and T4 Text Templates.

Features

Provides C# syntax highlighting for embedded code within T4 templates as well as snippets for common directives and functions.

Light theme screenshot

Dark theme screenshot

Known Issues

Currently only C# embedded highlighting is supported.

Release Notes

0.5.0

Recognize .ttinclude files.

0.4.4

Fix inverted highlighting on back-to-back blocks.

0.4.3

Fixed compatibility for files without .tt extension. Thank you @awglyde!

0.4.0

Add background highlighting of open/closing brackets (<#, #>) and code blocks for better visual separation.

0.3.2

Further fixes for syntax highlighting.

0.3.1

Minor fix in syntax highlighting.

0.3.0

Added snippets!

0.2.2

Spruced up inline code regex, which fixed an issue where code failed to exit a block.

0.2.1

Fix issue where curly braces inside code blocks prevented escaping from block.

0.2.0

Rudimentary highlighting for opening/closing brackets.

0.1.3

Add extension icon.

0.1.2

Fixed sloppy highlighting.

0.1.1

Support for VS Code versions 1.0.0 and above.

0.1.0

Initial release.

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft