Not infrequently, I want to change the delimiters of a string from single quotes to double quotes, or vice versa. This is so annoying a process I wonder if there's an easier way.
What I do now is:
- delete the opening or closing quote
- type the replacement quote
- electric-pair-mode helpfully inserts a matching copy of the new delimiter, which must also be deleted
- navigate to the other delimiter somehow (I can't just jump over the string with C-M-f or C-M-b because the delimiters no longer match)
- delete the other quote
- type the replacement quote
- delete the copy of the replacement quote inserted by electric-pair-mode
It's kind of a pain. I could fashion some workaround in Elisp, but is there some easier and/or officially-blessed way to conveniently change quotes?