Skip to content

Suggestion: use raw string literals for multiline text #9

Description

@DrEsteban

I see the generator code currently uses the older @"" syntax for defining multiline strings, which means you have to fully left-justify in order to avoid encoding indentation to the final string.

In case you haven't heard of them, just wanted to drop a tip about raw string literals! They're my favorite newish addition to C# 🙂 It makes defining multi-line literals WAY nicer, while keeping your code looking like proper idiomatic C#.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions