A simple quotes helper for JavaScript and TypeScript.
It uses a simplified parser to build the string tree then handle the replacement. So don't worry about your comments containing quotes.
And more.
Ctrl/Cmd + P
in Visual Studio Code, then:
ext install es-quotes
esQuotes.transformToTemplateString
Transform a normal string to a template string.esQuotes.transformToNormalString
Transform a template string to a normal string.esQuotes.transformBetweenSingleDoubleQuotes
Transform a normal string between single and double quotes.esQuotes.transformBetweenQuotes
Transform a normal string between single, double and template quotes.
esQuotes.defaultQuote
Default quote when transforming to a normal string. Can be either'
or"
.
MIT License.