ToggleQuotes
ST2 Plugin for toggling quote marks
Details
Installs
- Total 11K
- Win 4K
- Mac 5K
- Linux 2K
Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | Aug 2 | Aug 1 | Jul 31 | Jul 30 | Jul 29 | Jul 28 | Jul 27 | Jul 26 | Jul 25 | Jul 24 | Jul 23 | Jul 22 | Jul 21 | Jul 20 | Jul 19 | Jul 18 | Jul 17 | Jul 16 | Jul 15 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 |
Mac | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
ToggleQuotes is a Sublime Text plugin which lets you easily toggle quote marks in your code.
Installation
With Package Control
If you have the Package Control package installed, you can install ToggleQuotes from inside Sublime Text itself. Open the Command Palette and select “Package Control: Install Package”, then search for ToggleQuotes and you're done!
Without Package Control
Go to your Sublime Text 2/3 Packages directory and clone the repository using the command below:
git clone https://github.com/spadgos/sublime-ToggleQuotes.git ToggleQuotes
Don't forget to keep updating it, though!
Example
Make one or more selections of strings including their quotes and then press the opposite quote mark. That is, if you have "test"
press '
, if you have 'test'
, press "
.
// With this selected:
"test"
// Press: '
// Result is:
'test'
Internal quotes are escaped, and already-escaped quotes are unescaped for you:
// With this selected:
"hello 'world'"
// Press: '
// Result is:
'hello \'world\''
// With this selected:
'hello \'world\''
// Press: "
// Result is:
"hello 'world'"
If you have multiple selections which have different quote marks, you can toggle them all by pressing Ctrl+'
You can also toggle the quote marks of a string by simply putting your cursor inside the string and pressing Ctrl+'
. The selection will expand to the entire string automatically.
Version History
- 1.2.0 December 2, 2016
- Added ability to toggle backquotes by pressing
`
with string selected, orCtrl+'
to cycle through quote types.
- Added ability to toggle backquotes by pressing
- 1.1.0 January 15, 2012
- Added
Ctrl+'
hotkey to expand to selection inside of strings.
- Added
- 1.0.0 November 8, 2011
- First release