How to disable escape sequence in visual studio 2019?
I want to write just text with symbols '\'
without edit all text ('\'
-> "\\"
)
Asked
Active
Viewed 54 times
0
-
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