Repository navigation
Serilog Syntax Highlighting v0.7.0
Installation
Download the attached VSIX file and double-click to install in Visual Studio 2022.
What's Changed
Added
- Property-argument highlighting for Serilog templates (#15, #17)
- Highlights the connection between template properties and their corresponding arguments
- When cursor is on a template property, both the property and its argument are highlighted
- When cursor is on an argument, both the argument and its template property are highlighted
- Press ESC to dismiss highlights
- Supports all string formats: regular, verbatim (@"..."), and raw strings ("""...""")
- Handles complex scenarios: multi-line templates, collection expressions, anonymous objects
- Correctly handles LogError with exception parameters
- Supports positional parameters ({0}, {1}) including duplicates
- Excludes ExpressionTemplate contexts where properties have no corresponding arguments
Requirements
- Visual Studio 2022 (17.0) or later
- .NET Framework 4.7.2 or later
Full Changelog: https://github.com/willibrandon/serilog-syntax/blob/main/CHANGELOG.md