I would like to edit the ASP.NET MVC templates for Visual Studio so that any new action or controller created has a specific piece of code within it by default.
For instance, I'd like to replace the generated:
public ActionResult MyAction()
{
return View();
}
with a specific coding standard we prefer to use within in my team. eg:
public ActionResult About()
{
try
{
DoStuff();
return View();
}
catch(Exception)
{
HandleException();
}
}
I've looked through the filesystem, but I cannot find anything specific that relates to the ASP.NET mvc templates. Anyone know where they are?