Way to automatically change JS quotes to backticks (template literals) when ${} is entered in string?
When typing something like this:
console.log("The value is
if I next typed ${ to begin a template literal then it would be great if I didn't have to manually change the surrounding quotes to backticks. Is there any way to set WS to detect that ${ is being typed inside quotes in Javascript and automatically change the quotes to backticks?
Please sign in to leave a comment.
No; I can only suggest using Replace with template string intention available on Alt+Enter:
See also the comments in https://youtrack.jetbrains.com/issue/WEB-35292