Converts strings like 'this'
to strings like "this"
.
Supports raw strings, docstrings and strings with escaped quotes.
You can install it from MELPA:
- http://melpa.org/#/getting-started
M-x package-install RET python-switch-quotes RET
Or clone this repository, open python-switch-quotes.el
in Emacs and run M-x package-install-from-buffer RET
.
Then put into your init.el
:
(require 'python-switch-quotes)
(define-key python-mode-map (kbd "C-c '") 'python-switch-quotes)
Move cursor to the middle of string and press C-c '
.