Template String Converter
This Visual Studio Code extension converts a string to a template string when "${" is typed.
Settings
Name |
Description |
Default Value |
template-string-converter.enable |
Switches the extension on/off |
true |
template-string-converter.validLanguages |
Languages the extension should apply to |
svelte, typescript, javascript, typescriptreact, javascriptreact |
template-string-converter.quoteType |
single ('' ), double ("" ), or both |
both |
template-string-converter.convertOutermostQuotes |
In the case of nested quotes, converts the outermost ones to backticks |
false |
template-string-converter.autoRemoveTemplateString |
When $ or { is deleted, replace backticks with quotes |
false |
template-string-converter.convertWithinTemplateString |
Within a template string, converts strings to template strings when ${ is typed |
true |
template-string-converter.addBracketsToProps |
Adds brackets to the template string for JSX properties |
false |
| |