0

How to disable escape sequence in visual studio 2019? I want to write just text with symbols '\' without edit all text ('\' -> "\\")

walnut
  • 21,629
  • 4
  • 23
  • 59
nt_qwark
  • 11
  • 4
  • Please explain in detail with a [repro] what the issue is. `'\'` and `"\\"` are literals for different types, the first being incomplete. – walnut Jan 05 '20 at 19:15
  • Are you looking for [literal raw string](https://en.cppreference.com/w/cpp/language/string_literal) `R"(c:\unescaped\test)"`? – Jarod42 Jan 05 '20 at 19:15
  • Either use raw [string literals](https://en.cppreference.com/w/cpp/language/string_literal) (as shown by @Jarod42) or escape the escape (i.e. use double backslash). – Some programmer dude Jan 05 '20 at 19:17

0 Answers0