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

Copy string value #335

Open
kubukoz opened this issue Mar 17, 2023 · 0 comments
Open

Copy string value #335

kubukoz opened this issue Mar 17, 2023 · 0 comments

Comments

@kubukoz
Copy link

kubukoz commented Mar 17, 2023

Is your feature request related to a problem? Please describe.

When working with multiline strings, sometimes you want to move the contents of that string to a file. Or you're trying to send that string as an example to someone, or if working on a compiler you might want to copy it to a file to play with it in your language's tooling.

It would be useful if there was a way to copy a multiline string's value, excluding the margin prefix (usually whitespace and a trailing |).

Describe the solution you'd like

A code action that shows up on string literals with no interpolation: "Copy string literal value". This would put the contents into the clipboard, similar to how you can copy worksheet output in an editor command (e.g. in vscode).

Describe alternatives you've considered

Manually copy-pasting the string and removing the margins. This is an error-prone process, especially if whitespace is significant in the text.

Additional context

No response

Search terms

copy paste

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

2 participants