Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Razor SnippetsNew to Visual Studio Code? Get it now.
Razor Snippets

Razor Snippets

Alexandre Serra

|
32,794 installs
| (0) | Free
Razor Snippets for Asp.Net Core
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Razor Snippets

Razor Snippets for Asp.Net Core

Usage

Type part of a snippet, press enter, and the snippet unfolds.

Snippets

Conditional Expressions
@if
@ifelse
@switch
Repetition Structures
@for
@foreach
@while
@do
HTML Helpers
@Html.DisplayNameFor
@Html.DisplayFor
@Html.ActionLink
@Html.Action
@Html.AntiForgeryToken
@Html.CheckBox
@Html.CheckBoxFor
Others
@ViewBag
@ViewData
@RenderBody
@model
@RenderSection
@section
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft