ReSharper 2026.1 Help

Code inspection: Use raw string

This inspection reports verbatim string literals that can be expressed more clearly as raw string literals. It is especially useful for multiline text or text that contains quotes, where raw strings remove most escaping noise.

Example

var json = @"{ ""name"": ""Kate"", ""age"": 42 }";
var json = """ { "name": "Kate", "age": 42 } """;

Quick-fix

Raw string literals are easier to read because the text looks much closer to its final value.

30 March 2026