cvbge / vscode-escape-string

Visual Studio Code extension which helps escaping string when copy/pasting
MIT License
2 stars 4 forks source link

Non-raw string in C++? #4

Open blackworm27 opened 1 week ago

blackworm27 commented 1 week ago

Are there any plans to support non-raw string literals in C++?

I am often pasting very long strings containing quote characters that need escaping. The raw string paste works, but it prevents the formatting (clang-format) splitting the string into multiple lines and wrapping it, allowing me to read the entire string in the code. Otherwise most of the long line is hidden to the right.

I would very much love a feature to select raw or non-raw escaped paste in C++. Or, if someone could point me to an extension that supports this, I would be very grateful.

cvbge commented 6 days ago

Hi @blackworm27, that sounds like a good idea. I don't know any extension which supports it.