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
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.