Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Serilog Syntax Highlighting
Serilog Syntax Highlighting

Serilog Syntax Highlighting

mtlog

|
6 installs
| (0) | Free
Provides syntax highlighting, navigation, and brace matching for Serilog message templates in C#/.NET projects. Supports all property types including standard, destructured, stringified, and positiona
Download

Serilog Syntax Highlighting Preview

A Visual Studio 2022 extension that provides syntax highlighting, brace matching, and navigation features for Serilog message templates in C#/.NET projects.

Features

🎨 Syntax Highlighting

  • Property names highlighted in blue: {UserId}, {UserName}
  • Destructuring operator @ highlighted in dark goldenrod: {@User}
  • Stringification operator $ highlighted in dark goldenrod: {$Settings}
  • Format specifiers highlighted in teal: {Timestamp:yyyy-MM-dd}
  • Alignment highlighted in red: {Name,10}, {Price,-8}
  • Positional parameters highlighted in dark violet: {0}, {1}
  • Property braces highlighted in purple for structure

🔗 Navigation

  • Navigate from template properties to their corresponding arguments
  • Light bulb suggestions when hovering over properties

🔍 Brace Matching

  • Highlight matching braces when cursor is positioned on { or }

Supported Serilog Syntax

Works with all Serilog logging methods including:

  • Direct Serilog calls: Log.Information(), Log.Debug(), etc.
  • ILogger interface: logger.LogInformation(), logger.LogError(), etc.
  • ForContext chains: Log.ForContext<T>().Information()
  • BeginScope: logger.BeginScope("Operation={Id}", id)
  • LogError with exception: logger.LogError(ex, "Message", args)
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft