ReSharper 2026.1 Help

Code inspection: Literal length can be reduced by using verbatim string

This inspection reports a regular string literal whose escaping would be clearer as a verbatim string literal. This is triggered for strings with many backslashes or escaped quotes, where verbatim syntax improves readability.

Example

var path = "C:\\\\Temp\\\\Logs\\\\app.txt";
var path = @"C:\Temp\Logs\app.txt";

Quick-fix

Convert the regular string literal to a verbatim string literal.

30 March 2026