Step 1: Select some text including the quotes, eg: "hello world"
Step 2: Hit the opposite quote, in this example, '
Result: 'hello world'
Obviously, it works for converting single-to-double quotes too.
As a bonus, it will automatically escape any quote marks which now need escaping, and unescape those which no longer need it.
- Code: Select all
Select: "It's \"awesome\""
Result: 'It\'s "awesome"'
Result: "It's \"awesome\""
It works with multiple selections, however, unless all the selections have the same original quoting style (eg: all single quoted, or all double quoted), you have to press the hotkey to activate it: Ctrl+'
Installation via Package Control
Code/bug reports/feature requests at: https://github.com/spadgos/sublime-ToggleQuotes