Allow "here-document"/verbatim string to consume first (and possibly last) line-feed/white-space. #4292
Unanswered
NeilMacMullen
asked this question in
Language Ideas
Replies: 1 comment
-
#4013 seems to have a similar motivation and https://developercommunity.visualstudio.com/idea/602807/indent-multi-line-verbatim-strings.html is also related. However, this proposal seems considerably easier to implement and has far less ambiguity; white-space and indentation are don't have to be calculated/visually adjusted according to the position of the first line since the left border is always used, It's simply a matter of applying a Trim operation to the entire string. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It's a small thing but it's annoying when my verbatim strings look like this....
What I'd really like to be able to write is some variation of
As a suggestion, perhaps a magic token such as '-' after the '@' can be used to request the compiler performs a Trim on the string?
Beta Was this translation helpful? Give feedback.
All reactions