Auto‑replace quote pairs on key press
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
I'd like to propose an automatic quote replacement feature.
Current behavior:
If I have a piece of text wrapped in double quotes, e.g. "example", and I select the text, then press a different quote key (e.g., `), nothing happens – I have to manually delete and retype both quotes.
https://github.com/user-attachments/assets/37ac701c-94f8-4fb1-a62e-2050fab74b36
Expected behavior:
The editor should automatically replace the existing opening and closing quotes with the newly pressed one.
This should work for all quote pairs: "", '', «», „“, etc., and should intelligently detect the matching opening and closing quotes to replace them both.
https://github.com/user-attachments/assets/0bda21fa-1c53-4d91-aaad-b096fc40f23d
Contributor guide
Assessment
This issue has not been assessed yet.