basarat / god-extra

Repository for issues and docs on God mode for VSCode
https://marketplace.visualstudio.com/items?itemName=basarat.god
5 stars 0 forks source link

Feature request: String concatenation to string interpolation #3

Open MrDesjardins opened 6 years ago

MrDesjardins commented 6 years ago

Here is a suggestion: Transforming concatenated string into string interpolation.

E.g.

var lyrics = 'Never gonna give you up';
var html = '<div>' + lyrics + '</div>';

When the user goes on the second line and uses the "transform to interpolated string" in God mode, the code becomes:

var lyrics = 'Never gonna give you up';
var html = `<div>${lyrics}</div>`;