ReSharper Web Help

ReSharper | Templates Explorer | Live Templates | Razor

Razor

ReSharper provides several live templates specific only for Razor, which are described below, also you can use HTML-Like templates.

Template name Description
inherits

Go to top

Purpose
Adds Razor inherits directive.

@inherits $TYPENAME$
$END$

Before expansion

After expansion

Parameters

  • TYPENAME - name of type

model

Go to top

Purpose
Adds Razor model directive.

@model $TYPENAME$
$END$

Before expansion

After expansion

Parameters

  • TYPENAME - name of type

section

Go to top

Purpose
Adds Razor section.

@section $section$
{
$END$
}

Before expansion

After expansion

Parameters

  • section - name of section

See Also

Reference