Skip to content

Add refactoring option to convert string concatenation to template literals #18267

Closed
@alex-kinokon

Description

@alex-kinokon

Consider adding the refactoring option to turn a string concatenation

console.log("My name is " + firstName + " " + lastName + ".");

to ES2015 template literals:

console.log(`My name is ${firstName} ${lastName}.`);

Metadata

Metadata

Assignees

No one assigned

    Labels

    CommittedThe team has roadmapped this issueDomain: Refactoringse.g. extract to constant or function, rename symbolFixedA PR has been merged for this issueSuggestionAn idea for TypeScriptUpdate Docs on Next ReleaseIndicates that this PR affects docs

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions