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

Copying out of raw string literal results in indented contents #64993

Closed
jcouv opened this issue Oct 26, 2022 · 5 comments
Closed

Copying out of raw string literal results in indented contents #64993

jcouv opened this issue Oct 26, 2022 · 5 comments
Labels
Area-IDE Feature Request untriaged Issues and PRs which have not yet been triaged by a lead

Comments

 @jcouv
Copy link
Member

Pasting into a raw string literal smartly indents the content. But copying out of a raw string literal results in indented contents in the clipboard.
This makes it hard to copy from a raw string literal to some other app (notepad, sharplab, email, etc).

When the copy action happens and the selection range is within an indented raw string literal, we should consider putting the un-indented contents into the clipboard instead.
I don't know if it's a good solution, but we could consider using the start position of the selected range as a hint.

Below is an example to illustrates the problem.
FYI @CyrusNajmabadi

 copy-raw-literal

 @dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Issues and PRs which have not yet been triaged by a lead label Oct 26, 2022
 @CyrusNajmabadi
Copy link
Member

Subsumed by https://devblogs.microsoft.com/visualstudio/copy-with-proper-indentation/ . Def send feedback to editor about making this first-class in VS itself :)

 @jcouv
Copy link
Member Author

Nice. Thanks!

 @Eli-Black-Work
Copy link

Can we keep this open, to track progress of making https://devblogs.microsoft.com/visualstudio/copy-with-proper-indentation first-class? 🙂

 @CyrusNajmabadi
Copy link
Member

@Bosch-Eli-Black I'd recommend filing a VS issue. :)

 @Eli-Black-Work
Copy link

Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment
Labels
Area-IDE Feature Request untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

No branches or pull requests

3 participants