Skip to content

Copy&paste into raw string literal affects formatting #74661

@jcouv

Description

@jcouv

I noticed an issue (shown below) where a copy&paste from Test Explorer window into the editor window results in a slightly different formatting.
I tried different selections when copying from the TE window, but got the same result.
This seems specific to raw string literals. When copying into a multi-line verbatim string, I don't see this problem.
The problem doesn't seem specific to the TE window, as copying from notepad and pasting into a raw string literal yields the same problem.

If you're looking for a repro, just pick any compiler test that uses VerifyOperationTreeAndDiagnosticsForTest and delete the expected IOperation string, then run the test and try to paste the correct expectation back into the test.

Raw string literal (repro):
copy-pasta

Verbatim string literal (no repro):
copy-pasta2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-IDEhelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on it

    Type

    No type

    Projects

    Status

    Completed

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions