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

Escape characters on paste #31869

Closed
sharwell opened this issue Dec 17, 2018 · 3 comments
Closed

Escape characters on paste #31869

sharwell opened this issue Dec 17, 2018 · 3 comments
Assignees
Labels
Area-IDE Feature Request Need Design Review The end user experience design needs to be reviewed and approved.
Milestone

Comments

@sharwell
Copy link
Member

sharwell commented Dec 17, 2018

It would be nice to automatically escape special characters when pasting content into a string. If the paste operation triggered an escaping operation, then the first Undo operation after paste would undo just the character escaping.

First position of copied region Pasting outside a literal Pasting inside a literal
Inside a text literal Unescape on paste Correct escape sequences that change meaning
Outside a text literal As-is Escape on paste
Raw text (e.g. browser) As-is Escape on paste
@sharwell sharwell added Area-IDE Feature Request Need Design Review The end user experience design needs to be reviewed and approved. labels Dec 17, 2018
@sharwell sharwell added this to the Backlog milestone Dec 17, 2018
@jinujoseph
Copy link
Contributor

This should probably be a platform feature to benefit other langs , cc @olegtk

@sharwell
Copy link
Member Author

sharwell commented Mar 2, 2022

Note that the escaping procedures for raw strings are more complicated, but the overall strategy holds. See #59820.

@CyrusNajmabadi
Copy link
Member

Fixed fully with #61177.

@sharwell sharwell moved this to Need Proposal in IDE: Design review Aug 22, 2023
@CyrusNajmabadi CyrusNajmabadi moved this from Need Proposal to Complete in IDE: Design review Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Feature Request Need Design Review The end user experience design needs to be reviewed and approved.
Projects
Status: Complete
Development

No branches or pull requests

4 participants