atom / toggle-quotes

An Atom package to toggle between single and double quotes
MIT License
77 stars 36 forks source link

Add backtick as a quote #14

Closed dmnd closed 7 years ago

dmnd commented 9 years ago

Sometimes I get halfway through writing a string when I realise I want to use ES6 interpolation. It'd be nice to be able to use toggle quotes here.

ghost commented 8 years ago

@+1 I also need this

I would like it to cycle through each type of quote every time you press the hot key.

"foo"
'foo'
`foo`

Update: oh, just fill in your custom quote character. I dunno when this feature was added, but it works for me :) I added this via the GUI settings and it works.

"'`

here's the part from my config.cson

  "toggle-quotes":
    quoteCharacters: "\"'`"
alexrussell commented 7 years ago

Probably worth closing this issue.