VS Code: Automatically convert concatenated strings to use template strings
Last updated: 19th July 2020You can convert concatenated strings to use template strings from the Refactor context menu, or clicking the lightbulb icon when it appears. This can convert your code from this:
const string = 'This is a ' + cake.type + ' cake.'
Into this:
const string = `This is a ${cake.type} cake.`
I also shared this on twitter!