Skip to content

Pasting in verbatim string doesn't properly escape double quotes #62969

@Youssef1313

Description

@Youssef1313

Paste the following in a verbatim string:

var lambda = [SuppressMessage("", "CA2013")] () => Object.ReferenceEquals(1, 2);

It gets pasted as:

var lambda = [SuppressMessage(", ""CA2013"")] () => Object.ReferenceEquals(1, 2);

Expected:

var lambda = [SuppressMessage("""", ""CA2013"")] () => Object.ReferenceEquals(1, 2);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-CompilersuntriagedIssues and PRs which have not yet been triaged by a lead

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions