百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
F

ForTea

> 编程语言
开源

一个用于 ReSharper 的插件,可为 T4 (.tt) 文件添加支持

190 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

一个用于 ReSharper 的插件,可为 T4 (.tt) 文件添加支持

ForTea

JetBrains

This plugin has been forked and is now maintained by JetBrains here.

What's ForTea?

ForTea is a a plugin for JetBrains ReSharper that adds support for editing T4 (.tt) files.
This project corresponds to the issue RSRP-191807 in JetBrains bug tracker.
For the latest version, please see the Releases.
Don't hesitate to open an issue if you encounter any problem.

Installation

Visual Studio 2010, 2012, 2013, 2015, 2017 and 2019 are supported.
ReSharper 2019.1 must be installed (older releases are still available for ReSharper 8.2, 9.x, 10.0, 2016.x, 2017.x, 2018.x).
To install ForTea, use Extension Manager from the ReSharper menu.

What's supported

  • Editing for .tt and .ttinclude and .t4 files
  • Syntax highlighting for T4 directives and blocks
  • Support for include files, both local and global to Visual Studio
  • T4 directives support and completion
  • Syntax highlighting for C# code
  • ReSharper automatic, basic and smart completion for C# code
  • File structure window support for T4 files
  • Everything you might expect from ReSharper in C# code: find usages, refactorings, etc.
  • ReSharper C# context actions and quick fixes
  • Support for adding assembly and import directives through quick fixes
  • Extending selection
  • T4 error highlightings and quick fixes
  • Auto update support
  • Both classic templates and runtime (aka preprocessed) templates.

Things to know

ForTea is only a ReSharper plugin at the moment, and doesn't provide any Visual Studio service, meaning there are some limitations. Amongst those, syntax highlighting is fully handled by ReSharper rather than Visual Studio: to get coloring for identifiers, you must enable Color identifiers in ReSharper Options > Code Inspection > Settings. Plus, there is no code outlining support yet.

Concerning ReSharper support, a custom code formatter for T4 files hasn't been written yet. You can use code cleanup on .tt files and the C# formatting rules configured in ReSharper options will be used automatically. However, there is currently no way to overwrite them, and there are no rules for T4 specific elements, such as placement of opening and closing blocks.

Visual Basic T4 files aren't supported yet.
Custom T4 directives aren't supported yet.

Licensed under Apache License 2.0

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言