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

Automatically insert closing quote for string literals in languages that support it #473

Closed
bobbylight opened this issue Dec 10, 2022 · 0 comments
Assignees
Milestone

Comments

@bobbylight
Copy link
Owner

bobbylight commented Dec 10, 2022

Describe the solution you'd like
When typing aa string literal, RSTA should automatically insert the closing quote. Further, when typing the closing quote, it should be overwritten rather than a duplicate quote inserted. This is a nice quality-of-life feature in many code editors today that helps prevent accidentally creating malformed string literals.

Are there any workarounds?
None other than implementing it yourself via Actions and InputMap.

Additional context
The only tricky part is deciding whether the current langugae supports quoted strings at the current caret position. In some instances, such as plain text files, we should not insert a closing quote.

bobbylight added a commit that referenced this issue Dec 10, 2022
@bobbylight bobbylight self-assigned this Dec 11, 2022
bobbylight added a commit that referenced this issue Dec 11, 2022
@bobbylight bobbylight added this to the 3.3.1 milestone Dec 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant