how can I get intellisense in a T4 template?

Vitor Silva picture Vitor Silva · Jan 7, 2009 · Viewed 23.1k times · Source

When trying out these tutorials (T4 Tutorial: Creating reusable code generation templates) I noticed that although I was using plain c# I didn't get any intellisense, probably because of the file extension (.tt)

Isn't there anyway to say to Visual Studio to consider those .tt files as .cs files and thus get the correct intellisense help?

Answer

Dan picture Dan · Aug 10, 2013

Resharper can do this, with the help of the ForTea Plugin that adds support for editing T4 (.tt) files.