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?

 

1
2 comments

No; I can only suggest using Replace with template string intention available on Alt+Enter:

 

2

Please sign in to leave a comment.