Command to show or copy value of string literal #31842
Labels
Area-IDE
Feature Request
help wanted
The issue is "up for grabs" - add a comment if you are interested in working on it
Milestone
String literals can be complicated. They have escape characters, verbatim string literals have double quotes, interpolated string literals have double curlies... It would be nice to have either a command that would
or
I also propose that this command work not only on regular string literals, but on interpolated strings as well. It would have to either remove the interpolated part altogether or replace it with some kind of a marker.
This would be extremely useful for scenarios like this:
Getting the raw string value from this (so that I can test this manually or just see that this represents the string I want it to represent and I didn't make a mistake when escaping) is a very tedious, slow and error-prone task. I have to copy the inside of the string literal, then replace all double curlies & replace all double quotes.
The text was updated successfully, but these errors were encountered: