Predefined File Templates for Razor (C#)
This topic lists all predefined file templates for Razor (C#) in ReSharper 2017.1 EAP 8. For more information about file templates, see Creating Files from Templates
Template | Details |
---|---|
Razor MVC Partial View | Razor MVC Partial View @model $model$
$END$
|
Razor MVC View | Razor MVC View @model $model$
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<title>$title$</title>
</head>
<body>
<div>
$END$
</div>
</body>
</html>
|
Razor MVC View with Layout | Razor MVC View with Layout @model $model$
@{
ViewBag.Title = "$title$";
Layout = "$_Layout$";
}
<h2>$title$</h2>
$END$
|
Last modified: 12 October 2017