C#C
C#4y ago
16 replies
Simo

❔ multi-line strings

hi, if I have a string like
@"this
is a multi
line string!"

when my code is formatted, tabs get inserted into my string so it ends up like:
    @"this
      is a multi
      line string!"

What is the best way around this? replacing new lines with \n?
Was this page helpful?