Skip to content
Converts single and double quotes, and re-escapes quotes within the string
Python JavaScript
Find file
Latest commit 5deb38d @colinta Merge pull request #19 from pepkin88/master
Support for LiveScript backslash strings
Failed to load latest commit information.
Default.sublime-commands initial commit
Example.sublime-keymap added example keymap file
LICENSE license
README.md Update README.md
change_quotes.py Setting correct offset
package.json package.json

README.md

ChangeQuotes

Converts single to double or double to single quotes. Attempts to preserve correct escaping, though this could be improved I'm sure.

Installation

  1. Using Package Control, install "ChangeQuotes"

Or:

  1. Open the Sublime Text Packages folder

    • OS X: ~/Library/Application Support/Sublime Text 3/Packages/
    • Windows: %APPDATA%/Sublime Text 3/Packages/
    • Linux: ~/.Sublime Text 3/Packages/ or ~/.config/sublime-text-3/Packages
  2. clone this repo

  3. Install keymaps for the commands (see Example.sublime-keymap for my preferred keys)

Sublime Text 2

  1. Open the Sublime Text 2 Packages folder
  2. clone this repo, but use the st2 branch

    git clone -b st2 git@github.com:colinta/SublimeChangeQuotes

How to use

Put your cursor inside the text that is in quotes and then execute the command to replace the quotes. No selection needed.

Commands

change_quotes: Converts from single to double quotes. Uses the Sublime Text grammar parsing, so it doesn't always "find" the quotes.

Something went wrong with that request. Please try again.