Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to format raw string literals? #2

Open
adrianiftode opened this issue Dec 22, 2022 · 0 comments
Open

Possible to format raw string literals? #2

adrianiftode opened this issue Dec 22, 2022 · 0 comments

Comments

@adrianiftode
Copy link

Consider the following snipped

        using var subject = new HttpResponseMessage(HttpStatusCode.BadRequest)
        {
            Content = new StringContent(/*lang=json,strict*/ """
                {
                   "type":"https://tools.ietf.org/html/rfc7231#section-6.5.1",
                 "title":"One or more validation errors occurred.", "status":400,
                            "traceId":"00-deb7480af23a884e942f7b85cac6bd35-c1abe72874d40c4a-00",
                   "errors":{
                      "Status":[ "Cannot add at Revoked Status." ]
                            }
                }
                """, Encoding.UTF8, "application/json")
        };

My use case would be to select the json in this string literal and then to prettify/format it.

Is this something that can be implemented within this extension?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant