Skip to content

Releases: sitefinitysteve/vscode-aspnet-mvc5-razor

Release list

v0.4.0

Choose a tag to compare

@sitefinitysteve sitefinitysteve released this 22 Oct 17:15

Added

  • Razor inside <script> and <style>: @Model.X, @Html.Raw(...), '@Url.Action(...)' inside JS strings, @if (...) { <text>...</text> } and @* comments *@ are recognised in inline JavaScript and CSS (before, they were coloured as JavaScript).
  • Visual Studio colours for inline CSS (gold selectors, light-blue property names) and JavaScript.

Fixed

  • C# type keywords (string, long, int, bool...) and modifiers no longer take the theme's colour (for example red (string) casts).

Install: download the .vsix below, then code --install-extension vscode-aspnet-mvc5-razor.vsix. Full history in CHANGELOG.md.

v0.3.1

Choose a tag to compare

@sitefinitysteve sitefinitysteve released this 22 Oct 12:57

Visual Studio-style highlighting for ASP.NET MVC 5 / System.Web.Razor .cshtml views in VS Code, without the ASP.NET Core Razor language server's false errors.

Install

Download vscode-aspnet-mvc5-razor.vsix below, then:

code --install-extension vscode-aspnet-mvc5-razor.vsix

For the Explorer file icon, add "files.associations": { "*.cshtml": "aspnetmvc5razor" } to your workspace settings.

0.3.1

  • Fixed bracket-pair colours inside Razor code (@foreach (...), @if (...), LINQ chains in code blocks).

0.3.0

  • Static-class colouring: page properties (Model, Html) plain, camelCase locals light blue, PascalCase roots (Util, Math, FormMethod) as types.
  • Workspace namespace discovery from .cs namespaces, web.config and NuGet ids, so fully-qualified names stay namespaces.
  • Theme-proof palette: Visual Studio 2026 Dark rules generated per scope and kept in user token colours (views only). Apply / Remove commands.

See CHANGELOG.md for 0.1.0 – 0.2.0.